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:
parent
16d4d6b49e
commit
e8db003465
1 changed files with 5 additions and 0 deletions
|
@ -278,6 +278,11 @@ static int load_config_buffer( void )
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_RTC
|
#ifdef HAVE_RTC
|
||||||
|
if(!correct)
|
||||||
|
{
|
||||||
|
/* If the disk sector was incorrect, reinit the buffer */
|
||||||
|
memset(config_block, 0xff, CONFIG_BLOCK_SIZE);
|
||||||
|
}
|
||||||
/* read rtc block */
|
/* read rtc block */
|
||||||
for (i=0; i < RTC_BLOCK_SIZE; i++ )
|
for (i=0; i < RTC_BLOCK_SIZE; i++ )
|
||||||
rtc_block[i] = rtc_read(0x14+i);
|
rtc_block[i] = rtc_read(0x14+i);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue