Fix logging in Health HAL 2.0
Bug: 149577800 Test: Ensure logging works as expected Change-Id: I79b78593ee6bdbda59e49a27e70076184a30668d
This commit is contained in:
parent
25c2de29b9
commit
45f8ab3477
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue