summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm')
-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)