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
This commit is contained in:
Barry Wardell 2007-01-31 19:30:32 +00:00
parent 83c831deae
commit 003e084a7a

View file

@ -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)