summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2003-12-04 11:26:10 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2003-12-04 11:26:10 +0000
commitcaff78802b4caad5b7a4c0f70d1efd13b886335d (patch)
tree20c78e98d4ce80b43376eed77a95c202856f2a3f
parent461d6e347e5d9c31a67454e9d87867ff105cf745 (diff)
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
-rw-r--r--firmware/drivers/rtc.c4
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)
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);
#endif
}