hide low_battery (#721)

This commit is contained in:
liyuaxue authored and GitHub committed 2025-05-30 01:10:28 +08:00
1 parent 1a695a203b
commit 47bdfa2c77
2 files changed
+2 -2

No files matched your search

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