summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorBarry Wardell <rockbox@barrywardell.net>2007-01-31 19:30:32 +0000
committerBarry Wardell <rockbox@barrywardell.net>2007-01-31 19:30:32 +0000
commit003e084a7a1befa41fb063462e391f98156c1385 (patch)
treedb9c8e266b394eb2f989e46999056145d34b2416 /firmware
parent83c831deae024a0b696b4232da2f009d7ef889f6 (diff)
downloadrockbox-003e084a7a1befa41fb063462e391f98156c1385.tar.gz
rockbox-003e084a7a1befa41fb063462e391f98156c1385.tar.bz2
rockbox-003e084a7a1befa41fb063462e391f98156c1385.zip
Power off on the Sansa more in line with how the OF does it (just change the relevant bit rather than the whole byte).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12166 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/sandisk/sansa-e200/power-e200.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/firmware/target/arm/sandisk/sansa-e200/power-e200.c b/firmware/target/arm/sandisk/sansa-e200/power-e200.c
index 8c40e3b0ac..7937c9dcc5 100644
--- a/firmware/target/arm/sandisk/sansa-e200/power-e200.c
+++ b/firmware/target/arm/sandisk/sansa-e200/power-e200.c
@@ -27,7 +27,10 @@ void power_init(void)
void power_off(void)
{
- pp_i2c_send(0x46, 0x20, 0x20);
+ char byte;
+ byte = i2c_readbyte(0x46, 0x20);
+ byte &= ~0x1;
+ pp_i2c_send(0x46, 0x20, byte);
}
bool charger_inserted(void)