fix battery encoding
This commit is contained in:
1 parent
893dd0f9c4
commit
9d5ca35e83
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -93,7 +93,7 @@ namespace sensors.internal {
|
||||
init();
|
||||
return {
|
||||
temp: analogMM.getNumber(NumberFormat.Int16LE, AnalogOff.BatteryTemp),
|
||||
current: analogMM.getNumber(NumberFormat.Int16LE, AnalogOff.BatteryCurrent)
|
||||
current: Math.round(analogMM.getNumber(NumberFormat.Int16LE, AnalogOff.BatteryCurrent) / 10);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user