forked from len0rd/rockbox
Fix for the occasional problem on FMR devices, when the device can't be turned off
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4105 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
461d6e347e
commit
caff78802b
1 changed files with 4 additions and 0 deletions
|
|
@ -57,6 +57,10 @@ void rtc_init(void)
|
||||||
rtc_write(0x04, data);
|
rtc_write(0x04, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Also, make sure that the OUT bit in register 8 is 1,
|
||||||
|
otherwise the player can't be turned off. */
|
||||||
|
rtc_write(8, rtc_read(8) | 0x80);
|
||||||
|
|
||||||
rtc_enable_alarm(false);
|
rtc_enable_alarm(false);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue