Skip to content

Commit 2a2d162

Browse files
committed
rg_system: Fixed typo causing low battery icon to always be displayed
1 parent da46248 commit 2a2d162

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/retro-go/rg_system.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ static void system_monitor_task(void *arg)
258258
update_statistics();
259259

260260
rg_battery_t battery = rg_input_read_battery();
261-
rg_system_set_indicator(RG_INDICATOR_POWER_LOW, true);
261+
rg_system_set_indicator(RG_INDICATOR_POWER_LOW, (battery.present && battery.level <= 2.f));
262262
update_indicators(false);
263263

264264
// Try to avoid complex conversions that could allocate, prefer rounding/ceiling if necessary.

0 commit comments

Comments
 (0)