Added track detect on fix and conditional loading

This commit is contained in:
2026-03-25 20:02:33 +01:00
parent a5b53afb2c
commit c6bcd3a9d7
2 changed files with 6 additions and 1 deletions

View File

@@ -65,6 +65,7 @@ int gps::loop(unsigned long timeout_ms) {
uint32_t current_fix_val = _gps->sentencesWithFix();
if (_last_fix_val == 0 && current_fix_val > 0) {
router::send(MOD_LCD, TASK_DISPLAY_MSG_GPS_FIX, 2000);
router::send(MOD_CFG, TASK_CONFIG_TRACK_DETECT);
}
_last_fix_val = current_fix_val;
}