summaryrefslogtreecommitdiffstats
path: root/apps/settings.c
diff options
context:
space:
mode:
authorMihail Zenkov <mihail.zenkov@gmail.com>2016-03-30 22:25:24 +0000
committerGerrit Rockbox <gerrit@rockbox.org>2016-04-04 11:05:43 +0200
commit6228c8da185066e3e8824bffc47ed2d11147e84b (patch)
tree63e4483f562b09a494432056e886fd088d4ee5ac /apps/settings.c
parent134e5914a1b530a9b4c5129f5b1eac1393eadcc7 (diff)
downloadrockbox-6228c8da185066e3e8824bffc47ed2d11147e84b.tar.gz
rockbox-6228c8da185066e3e8824bffc47ed2d11147e84b.tar.bz2
rockbox-6228c8da185066e3e8824bffc47ed2d11147e84b.zip
Fix reset runtime
Change-Id: Ic1ba0c7c7883aae43100c67235dbc2db83056fe7
Diffstat (limited to 'apps/settings.c')
-rw-r--r--apps/settings.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/settings.c b/apps/settings.c
index a0e20839ed..eed2b3a692 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -608,6 +608,11 @@ static void flush_config_block_callback(void)
settings_write_config(CONFIGFILE, SETTINGS_SAVE_CHANGED);
}
+void reset_runtime(void) {
+ lasttime = current_tick;
+ global_status.runtime = 0;
+}
+
/*
* persist all runtime user settings to disk or RTC RAM
*/