diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2003-12-04 11:26:10 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2003-12-04 11:26:10 +0000 |
commit | caff78802b4caad5b7a4c0f70d1efd13b886335d (patch) | |
tree | 20c78e98d4ce80b43376eed77a95c202856f2a3f /firmware | |
parent | 461d6e347e5d9c31a67454e9d87867ff105cf745 (diff) | |
download | rockbox-caff78802b4caad5b7a4c0f70d1efd13b886335d.tar.gz rockbox-caff78802b4caad5b7a4c0f70d1efd13b886335d.zip |
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
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/drivers/rtc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/drivers/rtc.c b/firmware/drivers/rtc.c index 20b0b00a75..d5b6c2fda6 100644 --- a/firmware/drivers/rtc.c +++ b/firmware/drivers/rtc.c | |||
@@ -57,6 +57,10 @@ void rtc_init(void) | |||
57 | rtc_write(0x04, data); | 57 | rtc_write(0x04, data); |
58 | } | 58 | } |
59 | 59 | ||
60 | /* Also, make sure that the OUT bit in register 8 is 1, | ||
61 | otherwise the player can't be turned off. */ | ||
62 | rtc_write(8, rtc_read(8) | 0x80); | ||
63 | |||
60 | rtc_enable_alarm(false); | 64 | rtc_enable_alarm(false); |
61 | #endif | 65 | #endif |
62 | } | 66 | } |