1 parent e4b09c9 commit 3a25a51Copy full SHA for 3a25a51
1 file changed
src/common/BatteryMonitorHardware.cpp
@@ -172,7 +172,7 @@ int VoltageDividerMonitor::read()
172
173
uint8_t VoltageDividerMonitor::readingToSoC(int reading)
174
{
175
- uint8_t batteryLevel = BatteryCalibrationService::call::getBatteryLevel(reading);
+ int batteryLevel = BatteryCalibrationService::call::getBatteryLevel(reading);
176
if (batteryLevel < 0)
177
178
// Battery calibration is *not* available
0 commit comments