1
0
Fork 0
forked from len0rd/rockbox

Finally killed the nasty bug that caused all the dir-buffer-full errors for the newbies

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4372 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2004-03-13 00:04:58 +00:00
parent 16d4d6b49e
commit e8db003465

View file

@ -278,6 +278,11 @@ static int load_config_buffer( void )
}
#ifdef HAVE_RTC
if(!correct)
{
/* If the disk sector was incorrect, reinit the buffer */
memset(config_block, 0xff, CONFIG_BLOCK_SIZE);
}
/* read rtc block */
for (i=0; i < RTC_BLOCK_SIZE; i++ )
rtc_block[i] = rtc_read(0x14+i);