hide low_battery (#721)

This commit is contained in:
liyuaxue
2025-05-30 01:10:28 +08:00
committed by GitHub
parent 1a695a203b
commit 47bdfa2c77
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;
}