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:
parent
83c831deae
commit
003e084a7a
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue