Skip to content

Commit e824a76

Browse files
committed
restore bat reading interval
1 parent 5bb3dca commit e824a76

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

main/apps/app_launcher/view/system_bar/system_bar.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ void Launcher::render_system_bar()
4444
_data.system_state.time = fmt::format("{:02d}:{:02d}", timeinfo.tm_hour, timeinfo.tm_min);
4545

4646
// Bat
47-
if ((GetHAL().millis() - _data.bat_update_time_count) > 3000 || _data.bat_update_time_count == 0) {
47+
if ((GetHAL().millis() - _data.bat_update_time_count) > 5000 || _data.bat_update_time_count == 0) {
4848
auto bat_level = GetHAL().getBatLevel();
4949
_data.system_state.bat_level = fmt::format("{}", bat_level);
5050
// mclog::tagInfo("system_bar", "get bat level: {}", bat_level);

0 commit comments

Comments
 (0)