From 003e084a7a1befa41fb063462e391f98156c1385 Mon Sep 17 00:00:00 2001 From: Barry Wardell Date: Wed, 31 Jan 2007 19:30:32 +0000 Subject: [PATCH] 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 --- firmware/target/arm/sandisk/sansa-e200/power-e200.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)