fix battery encoding

This commit is contained in:
Peli de Halleux
2018-01-11 08:47:09 -08:00
parent 893dd0f9c4
commit 9d5ca35e83
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}
}