fix for non-incrementing difference in timer

This commit is contained in:
Brad Parker 2016-12-19 18:40:16 -05:00
parent c81d54bd46
commit f0fc61be32

View File

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