diff options
Diffstat (limited to 'apps/settings.c')
-rw-r--r-- | apps/settings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/settings.c b/apps/settings.c index 15d1103646..e31a2d47d3 100644 --- a/apps/settings.c +++ b/apps/settings.c | |||
@@ -151,6 +151,7 @@ Rest of config block, only saved to disk: | |||
151 | *************************************/ | 151 | *************************************/ |
152 | 152 | ||
153 | #include "rtc.h" | 153 | #include "rtc.h" |
154 | long lasttime = 0; | ||
154 | static unsigned char config_block[CONFIG_BLOCK_SIZE]; | 155 | static unsigned char config_block[CONFIG_BLOCK_SIZE]; |
155 | 156 | ||
156 | /* | 157 | /* |
@@ -372,7 +373,6 @@ int settings_save( void ) | |||
372 | ((global_settings.trickle_charge & 1) << 4)); | 373 | ((global_settings.trickle_charge & 1) << 4)); |
373 | 374 | ||
374 | { | 375 | { |
375 | static long lasttime = 0; | ||
376 | int elapsed_secs; | 376 | int elapsed_secs; |
377 | 377 | ||
378 | elapsed_secs = (current_tick - lasttime) / HZ; | 378 | elapsed_secs = (current_tick - lasttime) / HZ; |