mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-30 02:20:48 +00:00
The `brdprop` command simply returned board_properties, however, board_properties is just a cache of the properties from init time. When the `brdprop` command was issued, it would only return the cached value. This commit changes the functionality of the `brdprop` command to always query the LONG_LIFE_SCRATCH1 register. BUG=b:63456150 BRANCH=cr50 TEST=Flash bob. Unplug and plug in battery, verify that BOARD_WP_ASSERTED is set when running the `brdprop` command. Change-Id: I0a7feb5e63f3e528b554ed0820924ac0705f5517 Signed-off-by: Aseda Aboagye <aaboagye@google.com> Reviewed-on: https://chromium-review.googlesource.com/566240 Commit-Ready: Aseda Aboagye <aaboagye@chromium.org> Tested-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-by: Mary Ruthven <mruthven@chromium.org>