Battery (Linux): fix temperature detection
This commit is contained in:
1 parent
bc52613410
commit
61af59fc00
1 file changed
+1
-1
@@ -88,7 +88,7 @@ static void parseBattery(FFstrbuf* dir, const char* id, FFBatteryOptions* option
|
||||
{
|
||||
ffStrbufAppendS(dir, "/temp");
|
||||
if (ffReadFileBuffer(dir->chars, &tmpBuffer))
|
||||
options->temp = ffStrbufToDouble(&tmpBuffer) / 10;
|
||||
result->temperature = ffStrbufToDouble(&tmpBuffer) / 10;
|
||||
ffStrbufSubstrBefore(dir, dirLength);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user