summaryrefslogtreecommitdiff
path: root/firmware/export/i2c-async.h
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-03-16 12:06:18 +0000
committerSolomon Peachy <pizza@shaftnet.org>2021-03-23 03:03:57 +0000
commit4d83f7a1926540278240033e4255f2c8bc6aed6a (patch)
treea415c7648efa34c042ea341b3f9b319721d66b6f /firmware/export/i2c-async.h
parent1c54c5227b4b8640c979000a340631dbeb190111 (diff)
downloadrockbox-4d83f7a1926540278240033e4255f2c8bc6aed6a.tar.gz
rockbox-4d83f7a1926540278240033e4255f2c8bc6aed6a.zip
Call powermgmt_init_target() before polling the battery
In the old position of the call, the first battery reading would be made before initializing the target's power management code. If the target needs to initialize before giving a battery reading, then the first reading would be wrong and the power thread might inappropriately shut down based on a false zero reading. The new position avoids forcing special-case logic onto the target power management code. Change-Id: I483cfabe30c6881d80a1094fd526fa0065523d19
Diffstat (limited to 'firmware/export/i2c-async.h')
0 files changed, 0 insertions, 0 deletions