@@ -101,7 +101,7 @@ void stateUpdate()
101
101
if (gnss->configureRover () == false )
102
102
{
103
103
settings.updateGNSSSettings = true ; // On the next boot, update the GNSS receiver
104
- recordSystemSettings (); // Record this state for next POR
104
+ recordSystemSettings (); // Record this state for next POR
105
105
106
106
systemPrintln (" Rover config failed" );
107
107
displayRoverFail (1000 );
@@ -234,7 +234,7 @@ void stateUpdate()
234
234
else
235
235
{
236
236
settings.updateGNSSSettings = true ; // On the next boot, update the GNSS receiver
237
- recordSystemSettings (); // Record this state for next POR
237
+ recordSystemSettings (); // Record this state for next POR
238
238
239
239
displayBaseFail (1000 );
240
240
}
@@ -444,9 +444,8 @@ void stateUpdate()
444
444
systemPrintln ();
445
445
446
446
parseIncomingSettings ();
447
- settings.updateGNSSSettings =
448
- true ; // When this profile is loaded next, force system to update GNSS settings.
449
- recordSystemSettings (); // Record these settings to unit
447
+ settings.updateGNSSSettings = true ; // New settings; update GNSS receiver on next boot
448
+ recordSystemSettings (); // Record these settings to unit
450
449
451
450
// Clear buffer
452
451
incomingSettingsSpot = 0 ;
@@ -458,18 +457,32 @@ void stateUpdate()
458
457
459
458
#ifdef COMPILE_WIFI
460
459
#ifdef COMPILE_AP
461
- // Dynamically update the coordinates on the AP page
460
+ // Handle dynamic requests coming from web config page
462
461
if (websocketConnected == true )
463
462
{
463
+ // Update the coordinates on the AP page
464
464
if (millis () - lastDynamicDataUpdate > 1000 )
465
465
{
466
466
lastDynamicDataUpdate = millis ();
467
467
createDynamicDataString (settingsCSV);
468
468
469
- // log_d("Sending coordinates: %s", settingsCSV);
470
469
sendStringToWebsocket (settingsCSV);
471
470
}
471
+
472
+ // If a firmware version was requested, and obtained, report it back to the web page
473
+ if (strlen (otaReportedVersion) > 0 )
474
+ {
475
+ if (settings.debugWebConfig )
476
+ systemPrintln (" Webconfig: Reporting firmware version" );
477
+
478
+ createFirmwareVersionString (settingsCSV);
479
+
480
+ sendStringToWebsocket (settingsCSV);
481
+
482
+ otaReportedVersion[0 ] = ' \0 ' ; // Zero out the reported version
483
+ }
472
484
}
485
+
473
486
#endif // COMPILE_AP
474
487
#endif // COMPILE_WIFI
475
488
}
0 commit comments