@@ -291,7 +291,7 @@ static void handleFirmwareFileUpload(AsyncWebServerRequest *request, String file
291291void onWsEvent (AsyncWebSocket * server, AsyncWebSocketClient * client, AwsEventType type, void * arg, uint8_t *data, size_t len)
292292{
293293 if (type == WS_EVT_CONNECT) {
294- char settingsCSV[4000 ];
294+ char settingsCSV[AP_CONFIG_SETTING_SIZE ];
295295 memset (settingsCSV, 0 , sizeof (settingsCSV));
296296 createSettingsString (settingsCSV);
297297 log_d (" Sending command: %s\n\r " , settingsCSV);
@@ -411,12 +411,12 @@ void createSettingsString(char* settingsCSV)
411411 stringRecord (settingsCSV, " radioPortBaud" , settings.radioPortBaud );
412412 stringRecord (settingsCSV, " dataPortChannel" , settings.dataPortChannel );
413413
414- // LBand
414+ // L-Band
415415 char hardwareID[13 ];
416416 sprintf (hardwareID, " %02X%02X%02X%02X%02X%02X" , unitMACAddress[0 ], unitMACAddress[1 ], unitMACAddress[2 ], unitMACAddress[3 ], unitMACAddress[4 ], unitMACAddress[5 ]); // Get ready for JSON
417417 stringRecord (settingsCSV, " hardwareID" , hardwareID);
418418
419- char apDaysRemaining[50 ];
419+ char apDaysRemaining[20 ];
420420 if (strlen (settings.pointPerfectCurrentKey ) > 0 )
421421 {
422422 uint8_t daysRemaining = daysFromEpoch (settings.pointPerfectNextKeyStart + settings.pointPerfectNextKeyDuration + 1 );
@@ -568,13 +568,13 @@ void updateSettingWithValue(const char *settingName, const char* settingValueStr
568568 else if (strcmp (settingName, " pointPerfectDeviceProfileToken" ) == 0 )
569569 strcpy (settings.pointPerfectDeviceProfileToken , settingValueStr);
570570 else if (strcmp (settingName, " enablePointPerfectCorrections" ) == 0 )
571- settings.enablePointPerfectCorrections = settingValue ;
571+ settings.enablePointPerfectCorrections = settingValueBool ;
572572 else if (strcmp (settingName, " home_wifiSSID" ) == 0 )
573573 strcpy (settings.home_wifiSSID , settingValueStr);
574574 else if (strcmp (settingName, " home_wifiPW" ) == 0 )
575575 strcpy (settings.home_wifiPW , settingValueStr);
576576 else if (strcmp (settingName, " autoKeyRenewal" ) == 0 )
577- settings.autoKeyRenewal = settingValue ;
577+ settings.autoKeyRenewal = settingValueBool ;
578578
579579 // Unused variables - read to avoid errors
580580 else if (strcmp (settingName, " measurementRateSec" ) == 0 ) {}
0 commit comments