Export remaining power/battery internal to apps

The gas-gauge readings (voltage, current, temperature, capacity, health,
charge state) are already exported by stock firmware; add the one remaining
safe reader, furi_hal_power_insomnia_level. furi_hal_power_init stays
disabled because re-initialising the power HAL from an app is unsafe.
This commit is contained in:
2026-05-20 00:48:54 +01:00
parent 38926b2d35
commit f12e9c196b
2 changed files with 11 additions and 0 deletions
+7
View File
@@ -112,6 +112,13 @@ EXPORT_ENABLE+='
^ble_glue_(start|stop|get_c2_status|get_hardfault_info|force_c2_mode)$
^furi_hal_bt_init$
'
# Power / battery internals: the gas-gauge readings (voltage, current,
# temperature, capacity, health, charge state) are already exported by stock
# firmware; this adds the remaining safe reader. furi_hal_power_init stays
# disabled (re-initialising the power HAL from an app is unsafe).
EXPORT_ENABLE+='
^furi_hal_power_insomnia_level$
'
export EXPORT_ENABLE
if grep -q "^Function,?," "$API_CSV" || ! grep -qE "^Header,\+,.*ble_hci_le\.h" "$API_CSV"; then
# fbt notices the new headers, rewrites the csv with '?' entries and stops.