hide low_battery (#721)
Some checks are pending
Build and Test / build (push) Waiting to run

This commit is contained in:
liyuaxue 2025-05-30 01:10:28 +08:00 committed by GitHub
parent 1a695a203b
commit 47bdfa2c77
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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;
}