mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
Bugfix Zero runtime not reset runtime while charger connected
I can't repro the users issue guessing its the difference with charging monitor vs not https://forums.rockbox.org/index.php/topic,55406.0.html Change-Id: I252f48cd24a9cb0fb2b899352fe9f9ac540a9a5b
This commit is contained in:
parent
29e0303915
commit
31c8c0496b
3 changed files with 11 additions and 4 deletions
|
|
@ -662,7 +662,7 @@ static void flush_config_block_callback(void)
|
|||
void reset_runtime(void)
|
||||
{
|
||||
update_runtime(); /* in case this is > topruntimetime */
|
||||
lasttime = current_tick;
|
||||
zero_runtime();
|
||||
global_status.runtime = 0;
|
||||
}
|
||||
|
||||
|
|
@ -681,6 +681,11 @@ void update_runtime(void)
|
|||
global_status.topruntime = global_status.runtime;
|
||||
}
|
||||
|
||||
void zero_runtime(void)
|
||||
{
|
||||
lasttime = current_tick;
|
||||
}
|
||||
|
||||
void status_save(bool force)
|
||||
{
|
||||
if(force)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue