Fix logging in Health HAL 2.0 am: 45f8ab3477

Change-Id: I8f3e57437e0e29dbba8d6f70c136e9b30d8f2250
This commit is contained in:
Stephane Lee
2020-02-15 10:14:36 +00:00

View File

@@ -156,7 +156,7 @@ Return<Result> Health::update() {
const HealthInfo_1_0& health_info = battery_monitor_->getHealthInfo_1_0();
struct BatteryProperties props;
convertFromHealthInfo(health_info, &props);
bool log = healthd_board_battery_update(&props);
bool log = (healthd_board_battery_update(&props) == 0);
if (log) {
battery_monitor_->logValues();
}