summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 20b0b00..d5b6c2f 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
}