Skip to content

librem_14/board.c: battery_status is a bitfield, test with bitwise and

Jonathon Hall requested to merge battery-init-bit-flag into master

board_1s_event() intends to check the battery voltage only if the battery is initialized, check for the BATTERY_INITIALIZED bit with bitwise and.

This probably was not causing any problems though, the battery would only clear this bit if the calibration data were somehow lost.

Signed-off-by: Jonathon Hall jonathon.hall@puri.sm

Merge request reports