diff options
Diffstat (limited to 'apps')
-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 67530a9fbc..e285d266d5 100644 --- a/apps/settings.c +++ b/apps/settings.c | |||
@@ -198,7 +198,7 @@ static int save_config_buffer( void ) | |||
198 | /* update the checksum in the end of the block before saving */ | 198 | /* update the checksum in the end of the block before saving */ |
199 | calculate_config_checksum(rtc_config_block + sizeof(rtc_config_block) - 2); | 199 | calculate_config_checksum(rtc_config_block + sizeof(rtc_config_block) - 2); |
200 | #ifdef SAVE_TO_DISK | 200 | #ifdef SAVE_TO_DISK |
201 | if(battery_level_safe()) | 201 | if(battery_level_safe() && (fat_firstsector()!=0)) |
202 | return !ata_write_sectors( 61, 1, rtc_config_block); | 202 | return !ata_write_sectors( 61, 1, rtc_config_block); |
203 | else | 203 | else |
204 | return -1; | 204 | return -1; |