mirror of
https://github.com/78/xiaozhi-esp32.git
synced 2026-01-14 01:07:30 +08:00
hide low_battery (#721)
Some checks are pending
Build and Test / build (push) Waiting to run
Some checks are pending
Build and Test / build (push) Waiting to run
This commit is contained in:
parent
1a695a203b
commit
47bdfa2c77
@ -212,7 +212,7 @@ public:
|
||||
power_save_timer_->SetEnabled(discharging);
|
||||
last_discharging = discharging;
|
||||
}
|
||||
level = power_manager_->GetBatteryLevel();
|
||||
level = std::max<uint32_t>(power_manager_->GetBatteryLevel(), 20);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@ -228,7 +228,7 @@ ZHENGCHEN_1_54TFT_WIFI() :
|
||||
power_save_timer_->SetEnabled(discharging);
|
||||
last_discharging = discharging;
|
||||
}
|
||||
level = power_manager_->GetBatteryLevel();
|
||||
level = std::max<uint32_t>(power_manager_->GetBatteryLevel(), 20);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user