diff options
Diffstat (limited to 'apps/settings.c')
-rw-r--r-- | apps/settings.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/settings.c b/apps/settings.c index 49423ab629..edcef4a271 100644 --- a/apps/settings.c +++ b/apps/settings.c | |||
@@ -574,7 +574,7 @@ static void init_config_buffer( void ) | |||
574 | static int save_config_buffer( void ) | 574 | static int save_config_buffer( void ) |
575 | { | 575 | { |
576 | unsigned short chksum; | 576 | unsigned short chksum; |
577 | #ifdef HAVE_RTC | 577 | #ifdef HAVE_RTC_RAM |
578 | unsigned int i; | 578 | unsigned int i; |
579 | #endif | 579 | #endif |
580 | 580 | ||
@@ -583,7 +583,7 @@ static int save_config_buffer( void ) | |||
583 | config_block[ RTC_BLOCK_SIZE - 2 ] = chksum >> 8; | 583 | config_block[ RTC_BLOCK_SIZE - 2 ] = chksum >> 8; |
584 | config_block[ RTC_BLOCK_SIZE - 1 ] = chksum & 0xff; | 584 | config_block[ RTC_BLOCK_SIZE - 1 ] = chksum & 0xff; |
585 | 585 | ||
586 | #ifdef HAVE_RTC | 586 | #ifdef HAVE_RTC_RAM |
587 | /* FIXME: okay, it _would_ be cleaner and faster to implement rtc_write so | 587 | /* FIXME: okay, it _would_ be cleaner and faster to implement rtc_write so |
588 | that it would write a number of bytes at a time since the RTC chip | 588 | that it would write a number of bytes at a time since the RTC chip |
589 | supports that, but this will have to do for now 8-) */ | 589 | supports that, but this will have to do for now 8-) */ |
@@ -637,7 +637,7 @@ static int load_config_buffer(int which) | |||
637 | } | 637 | } |
638 | } | 638 | } |
639 | 639 | ||
640 | #ifdef HAVE_RTC | 640 | #ifdef HAVE_RTC_RAM |
641 | if(!correct) | 641 | if(!correct) |
642 | { | 642 | { |
643 | /* If the disk sector was incorrect, reinit the buffer */ | 643 | /* If the disk sector was incorrect, reinit the buffer */ |