FreeCalypso > hg > fc-tourmaline
view bwsplash/bwsplash.pbm @ 244:96784b8974eb
Switch_ON(): detect charging mode by CHGPRES bit
Consider the following scenario: the phone is on, the user plugs in
the charger, and then executes the power-off operation. In the Iota
VRPC this sequence translates to a switch-off immediately followed
by another switch-on - but the CHGSTS bit doesn't get set on the second
switch-on cycle! Disassembly of Pirelli's fw shows that they check
the CHGPRES bit, and furthermore, if both CHGPRES and ONBSTS are set,
the code they pass to their modified Power_ON_Button() function is
the one for charging - so let's adopt the same CHGPRES check and
the same priority order for switch-on causes.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 03 May 2021 06:51:29 +0000 |
parents | 4d9f24c501f3 |
children |
line wrap: on
line source
P1 80 30 11111110000000000000000000000111111000000000011000000000000000000000000000000000 11111110000000000000000000000111011100000000011000000000000000000000000000000000 11000000110100011000000110001100001100011100011011000011011011000011100000111000 11000000111101111110011111101100000000111111011001100110011111100111111011111100 11111110110001100110011001101100000000110011011001100110011000110110011011000110 11111110110011000110110001101100000000000111011001100100011000110111100011000110 11000000110011111110111111101100000110111111011000111100011000110011111011000110 11000000110011000000110000001100001101100011011000111100011000110000011011000110 11000000110001100110011001100111011101110111011000111000011101110110011011001110 11000000110001111100011111000011111000111111011000011000011111100111111001111100 00000000000000000000000000000000000000000000000000011000011000000000000000000000 00000000000000000000000000000000000000000000000000110000011000000000000000000000 00000000000000000000000000000000000000000000000001110000011000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000011000000000000000000000000000000000000000000000000000 00000000000000000000000000011000000011000110000000000000000000000000000000000000 00000000000000000000000000011000000000000110000011000000000000000000000000000000 00000000000000000000000000011000000011001111001111110000000000000000000000000000 00000000000000000000000000011000000011000110001100110000000000000000000000000000 00000000000000000000000000011000000011000110011000110000000000000000000000000000 00000000000000000000000000011000000011000110011111110000000000000000000000000000 00000000000000000000000000011000000011000110011000000000000000000000000000000000 00000000000000000000000000011111110011000110001100110000000000000000000000000000 00000000000000000000000000011111110011000111001111100000000000000000000000000000