fix for non-incrementing difference in timer
This commit is contained in:
parent
c81d54bd46
commit
f0fc61be32
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue