1
0
Fork 0
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:
Linus Nielsen Feltzing 2003-12-04 11:26:10 +00:00
parent 461d6e347e
commit caff78802b

View file

@ -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
} }