diff --git a/menu/drivers/xmb.c b/menu/drivers/xmb.c index 1769b0b6e9..84786fb02e 100644 --- a/menu/drivers/xmb.c +++ b/menu/drivers/xmb.c @@ -2653,13 +2653,15 @@ static void xmb_frame(void *data) char msg[12]; bool charging = (state == FRONTEND_POWERSTATE_CHARGING); - if (time_to_update) + if (time_to_update) + { state = frontend->get_powerstate(&seconds, &percent); + time_to_update = false; + last_time = current_time; + } *msg = '\0'; - last_time = current_time; - if (percent > 0) { size_t x_pos = 0;