MeshCore/examples/companion_radio
Alejandro Ramirez f8dbdce6bb
fix: apply persisted GPS enabled setting on boot for companion radio
The companion_radio example was not restoring the GPS enabled/disabled
preference from flash after reboot. The preference was being saved
correctly when toggled via the mobile app, but on boot,
sensors.begin() -> initBasicGPS() unconditionally sets gps_active=false
and nothing subsequently restored the persisted state.

Added applyGpsPrefs() (matching the pattern in simple_repeater,
simple_sensor, and simple_room_server) and call it from main.cpp
after sensors.begin() to ensure the GPS hardware is initialized
before the saved preference is applied.
2026-03-24 09:10:09 -05:00
..
ui-new Add muted icon to show when buzzer is muted 2026-02-11 10:00:20 +01:00
ui-orig Add battery min/max voltage parameter support 2026-01-28 22:24:49 -07:00
AbstractUITask.h ♻️ refactor: unify UI notification methods into single notify() function 2025-09-17 08:56:18 +08:00
DataStore.cpp Rename sx126x_rx_boosted_gain to rx_boosted_gain 2026-03-05 18:14:47 +00:00
DataStore.h add DataStore::deleteBlobByKey() 2026-02-01 00:02:29 +11:00
main.cpp fix: apply persisted GPS enabled setting on boot for companion radio 2026-03-24 09:10:09 -05:00
MyMesh.cpp add define for reserved group data type 2026-03-23 23:09:35 +13:00
MyMesh.h fix: apply persisted GPS enabled setting on boot for companion radio 2026-03-24 09:10:09 -05:00
NodePrefs.h Rename sx126x_rx_boosted_gain to rx_boosted_gain 2026-03-05 18:14:47 +00:00