summaryrefslogtreecommitdiff
path: root/apps/settings.c
diff options
context:
space:
mode:
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 7b9c1feb60..55dcc0aa78 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -278,6 +278,11 @@ static int load_config_buffer( void )
278 } 278 }
279 279
280#ifdef HAVE_RTC 280#ifdef HAVE_RTC
281 if(!correct)
282 {
283 /* If the disk sector was incorrect, reinit the buffer */
284 memset(config_block, 0xff, CONFIG_BLOCK_SIZE);
285 }
281 /* read rtc block */ 286 /* read rtc block */
282 for (i=0; i < RTC_BLOCK_SIZE; i++ ) 287 for (i=0; i < RTC_BLOCK_SIZE; i++ )
283 rtc_block[i] = rtc_read(0x14+i); 288 rtc_block[i] = rtc_read(0x14+i);