summaryrefslogtreecommitdiffstats
path: root/firmware/drivers/pcf50605.c
diff options
context:
space:
mode:
authorThom Johansen <thomj@rockbox.org>2007-09-28 15:09:54 +0000
committerThom Johansen <thomj@rockbox.org>2007-09-28 15:09:54 +0000
commit1ef5dadec5342dc126a1f7745cd48030cb05eaa8 (patch)
tree088d71aa489733972cdf7344c9ee30ad887dba4e /firmware/drivers/pcf50605.c
parent49a9e1ef35085dd1b348bb7949f32cd4db043506 (diff)
downloadrockbox-1ef5dadec5342dc126a1f7745cd48030cb05eaa8.tar.gz
rockbox-1ef5dadec5342dc126a1f7745cd48030cb05eaa8.zip
Try to fix the case where Ipods would spuriously wake up even though no alarm had been set.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14885 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/pcf50605.c')
-rw-r--r--firmware/drivers/pcf50605.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/drivers/pcf50605.c b/firmware/drivers/pcf50605.c
index cf4ea9fecb..94d9d0882f 100644
--- a/firmware/drivers/pcf50605.c
+++ b/firmware/drivers/pcf50605.c
@@ -69,6 +69,7 @@
#define D2REGC1 0x25
#define D3REGC1 0x26
+unsigned char pcf50605_wakeup_flags = 0;
int pcf50605_read(int address)
{
@@ -101,8 +102,7 @@ int pcf50605_write_multiple(int address, const unsigned char* buf, int count)
power on your iPod again. */
void pcf50605_standby_mode(void)
{
- const char mask = pcf50605_read(OOCC1) | GOSTDBY | CHGWAK | EXTONWAK;
- pcf50605_write(OOCC1, mask);
+ pcf50605_write(OOCC1, GOSTDBY | CHGWAK | EXTONWAK | pcf50605_wakeup_flags);
}
void pcf50605_init(void)