mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Fix logging in Health HAL 2.0 am: 45f8ab3477 am: 05c31c601f
Change-Id: I34e9628674224f5096cf060778ad80636b0a4a37
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user