Then I see ARM7 code:

Code: Select all

```
battery = readPowerManagement(PM_BATTERY_REG) & 1;
backlight = readPowerManagement(PM_BACKLIGHT_LEVEL);
if (backlight & (1<<6)) battery += backlight & (1<<3)<<12;
fifoSendValue32(FIFO_SYSTEM, battery);
```

Code: Select all

`battery += backlight & (1<<3)<<12`

Or did you mean this?

Code: Select all

`battery += (backlight & (1<<3))<<12`