mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
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. |
||
|---|---|---|
| .. | ||
| ui-new | ||
| ui-orig | ||
| AbstractUITask.h | ||
| DataStore.cpp | ||
| DataStore.h | ||
| main.cpp | ||
| MyMesh.cpp | ||
| MyMesh.h | ||
| NodePrefs.h | ||