diff options
author | Barry Wardell <rockbox@barrywardell.net> | 2007-03-15 22:17:09 +0000 |
---|---|---|
committer | Barry Wardell <rockbox@barrywardell.net> | 2007-03-15 22:17:09 +0000 |
commit | 73106a2a69425a52ab982f5836d90645c1d6c8b5 (patch) | |
tree | 3cb8c56e0b58f1cadc67524f58e58d3ebc416458 /firmware/target | |
parent | 39e1b59c48f329508823c6443646dc2d3aeae621 (diff) |
Fix problem where power_off() on the Sansa returns before the device is actually powered off.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12788 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target')
-rw-r--r-- | firmware/target/arm/sandisk/sansa-e200/power-e200.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/target/arm/sandisk/sansa-e200/power-e200.c b/firmware/target/arm/sandisk/sansa-e200/power-e200.c index 7937c9dcc5..a01654fced 100644 --- a/firmware/target/arm/sandisk/sansa-e200/power-e200.c +++ b/firmware/target/arm/sandisk/sansa-e200/power-e200.c @@ -31,6 +31,8 @@ void power_off(void) byte = i2c_readbyte(0x46, 0x20); byte &= ~0x1; pp_i2c_send(0x46, 0x20, byte); + + while(1); /* Wait for device to power off */ } bool charger_inserted(void) |