mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-28 07:57:18 +02:00
Update feedback
Change airgradient-ota submodule to latest main instead of branch
This commit is contained in:
@ -584,7 +584,7 @@ void otaHandlerCallback(AirgradientOTA::OtaResult result, const char *msg) {
|
||||
Serial.println("Firmware update starting...");
|
||||
if (configuration.hasSensorSGP && networkOption == UseCellular) {
|
||||
// Temporary pause SGP41 task while cellular firmware update is in progress
|
||||
ag->sgp41.pauseHandle();
|
||||
ag->sgp41.pause();
|
||||
}
|
||||
displayExecuteOta(result, fwNewVersion, 0);
|
||||
break;
|
||||
@ -594,13 +594,15 @@ void otaHandlerCallback(AirgradientOTA::OtaResult result, const char *msg) {
|
||||
displayExecuteOta(result, "", std::stoi(msg));
|
||||
break;
|
||||
case AirgradientOTA::Failed:
|
||||
displayExecuteOta(result, "", 0);
|
||||
if (configuration.hasSensorSGP && networkOption == UseCellular) {
|
||||
// Cellular firmware update finish, resuming SGP41 task
|
||||
ag->sgp41.resume();
|
||||
}
|
||||
break;
|
||||
case AirgradientOTA::Skipped:
|
||||
case AirgradientOTA::AlreadyUpToDate:
|
||||
displayExecuteOta(result, "", 0);
|
||||
if (configuration.hasSensorSGP && networkOption == UseCellular) {
|
||||
// Cellular firmware update finish, resuming SGP41 task
|
||||
ag->sgp41.resumeHandle();
|
||||
}
|
||||
break;
|
||||
case AirgradientOTA::Success:
|
||||
displayExecuteOta(result, "", 0);
|
||||
|
Submodule src/Libraries/airgradient-ota updated: be4e839f29...81a0189f54
@ -132,7 +132,7 @@ void Sgp41::handle(void) {
|
||||
|
||||
#else
|
||||
|
||||
void Sgp41::pauseHandle() {
|
||||
void Sgp41::pause() {
|
||||
onPause = true;
|
||||
Serial.println("Pausing SGP41 handler task");
|
||||
// Set latest value to invalid
|
||||
@ -142,9 +142,9 @@ void Sgp41::pauseHandle() {
|
||||
nox = utils::getInvalidNOx();
|
||||
}
|
||||
|
||||
void Sgp41::resumeHandle() {
|
||||
void Sgp41::resume() {
|
||||
onPause = false;
|
||||
Serial.println("Resume SGP41 handler task");
|
||||
Serial.println("Resuming SGP41 handler task");
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -19,9 +19,9 @@ public:
|
||||
void handle(void);
|
||||
#else
|
||||
/* pause _handle task to read sensor */
|
||||
void pauseHandle();
|
||||
void pause();
|
||||
/* resume _handle task to read sensor */
|
||||
void resumeHandle();
|
||||
void resume();
|
||||
void _handle(void);
|
||||
#endif
|
||||
void end(void);
|
||||
|
Reference in New Issue
Block a user