@@ -291,7 +291,7 @@ static void handleFirmwareFileUpload(AsyncWebServerRequest *request, String file
291
291
void onWsEvent (AsyncWebSocket * server, AsyncWebSocketClient * client, AwsEventType type, void * arg, uint8_t *data, size_t len)
292
292
{
293
293
if (type == WS_EVT_CONNECT) {
294
- char settingsCSV[4000 ];
294
+ char settingsCSV[AP_CONFIG_SETTING_SIZE ];
295
295
memset (settingsCSV, 0 , sizeof (settingsCSV));
296
296
createSettingsString (settingsCSV);
297
297
log_d (" Sending command: %s\n\r " , settingsCSV);
@@ -411,12 +411,12 @@ void createSettingsString(char* settingsCSV)
411
411
stringRecord (settingsCSV, " radioPortBaud" , settings.radioPortBaud );
412
412
stringRecord (settingsCSV, " dataPortChannel" , settings.dataPortChannel );
413
413
414
- // LBand
414
+ // L-Band
415
415
char hardwareID[13 ];
416
416
sprintf (hardwareID, " %02X%02X%02X%02X%02X%02X" , unitMACAddress[0 ], unitMACAddress[1 ], unitMACAddress[2 ], unitMACAddress[3 ], unitMACAddress[4 ], unitMACAddress[5 ]); // Get ready for JSON
417
417
stringRecord (settingsCSV, " hardwareID" , hardwareID);
418
418
419
- char apDaysRemaining[50 ];
419
+ char apDaysRemaining[20 ];
420
420
if (strlen (settings.pointPerfectCurrentKey ) > 0 )
421
421
{
422
422
uint8_t daysRemaining = daysFromEpoch (settings.pointPerfectNextKeyStart + settings.pointPerfectNextKeyDuration + 1 );
@@ -568,13 +568,13 @@ void updateSettingWithValue(const char *settingName, const char* settingValueStr
568
568
else if (strcmp (settingName, " pointPerfectDeviceProfileToken" ) == 0 )
569
569
strcpy (settings.pointPerfectDeviceProfileToken , settingValueStr);
570
570
else if (strcmp (settingName, " enablePointPerfectCorrections" ) == 0 )
571
- settings.enablePointPerfectCorrections = settingValue ;
571
+ settings.enablePointPerfectCorrections = settingValueBool ;
572
572
else if (strcmp (settingName, " home_wifiSSID" ) == 0 )
573
573
strcpy (settings.home_wifiSSID , settingValueStr);
574
574
else if (strcmp (settingName, " home_wifiPW" ) == 0 )
575
575
strcpy (settings.home_wifiPW , settingValueStr);
576
576
else if (strcmp (settingName, " autoKeyRenewal" ) == 0 )
577
- settings.autoKeyRenewal = settingValue ;
577
+ settings.autoKeyRenewal = settingValueBool ;
578
578
579
579
// Unused variables - read to avoid errors
580
580
else if (strcmp (settingName, " measurementRateSec" ) == 0 ) {}
0 commit comments