Save progress: pre-main-task, post-setup task-driven
This commit is contained in:
@@ -93,7 +93,7 @@ static void socketio_event_handler(void *handler_args, esp_event_base_t base,
|
||||
if (port != 1) printf("ERROR: NON-1 PORT RECEIVED\n");
|
||||
// Report back actual calibration status from device
|
||||
else {
|
||||
bool deviceCalibrated = calib.getCalibrated();
|
||||
bool deviceCalibrated = Calibration::getCalibrated();
|
||||
emitCalibStatus(deviceCalibrated);
|
||||
printf(" Reported calibrated=%d for port %d\n", deviceCalibrated, port);
|
||||
runToAppPos(lastPos);
|
||||
@@ -106,7 +106,7 @@ static void socketio_event_handler(void *handler_args, esp_event_base_t base,
|
||||
statusResolved = true;
|
||||
} else {
|
||||
printf("Device authentication failed\n");
|
||||
calib.clearCalibrated();
|
||||
Calibration::clearCalibrated();
|
||||
deleteWiFiAndTokenDetails();
|
||||
connected = false;
|
||||
statusResolved = true;
|
||||
@@ -123,7 +123,7 @@ static void socketio_event_handler(void *handler_args, esp_event_base_t base,
|
||||
printf("Server message: %s\n", message->valuestring);
|
||||
}
|
||||
}
|
||||
calib.clearCalibrated();
|
||||
Calibration::clearCalibrated();
|
||||
deleteWiFiAndTokenDetails();
|
||||
connected = false;
|
||||
statusResolved = true;
|
||||
|
||||
Reference in New Issue
Block a user