File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -922,6 +922,17 @@ void otaUpdate()
922
922
break ;
923
923
}
924
924
}
925
+
926
+ // Periodically display the state
927
+ if (PERIODIC_DISPLAY (PD_OTA_STATE))
928
+ {
929
+ char line[30 ];
930
+ const char * state;
931
+
932
+ PERIODIC_CLEAR (PD_OTA_STATE);
933
+ state = otaStateNameGet (otaState, line);
934
+ systemPrintf (" OTA Firmware Update state: %s\r\n " , state);
935
+ }
925
936
}
926
937
927
938
// ----------------------------------------
Original file line number Diff line number Diff line change @@ -1232,6 +1232,9 @@ void menuPeriodicPrint()
1232
1232
systemPrint (" 59) WebServer state: " );
1233
1233
systemPrintf (" %s\r\n " , PERIODIC_SETTING (PD_WEB_SERVER_STATE) ? " Enabled" : " Disabled" );
1234
1234
1235
+ systemPrint (" 60) OTA firmware update state: " );
1236
+ systemPrintf (" %s\r\n " , PERIODIC_SETTING (PD_OTA_STATE) ? " Enabled" : " Disabled" );
1237
+
1235
1238
systemPrintln (" ------- Tasks ------" );
1236
1239
systemPrint (" 70) btReadTask state: " );
1237
1240
systemPrintf (" %s\r\n " , PERIODIC_SETTING (PD_TASK_BLUETOOTH_READ) ? " Enabled" : " Disabled" );
@@ -1339,6 +1342,8 @@ void menuPeriodicPrint()
1339
1342
PERIODIC_TOGGLE (PD_UDP_SERVER_BROADCAST_DATA);
1340
1343
else if (incoming == 59 )
1341
1344
PERIODIC_TOGGLE (PD_WEB_SERVER_STATE);
1345
+ else if (incoming == 60 )
1346
+ PERIODIC_TOGGLE (PD_OTA_STATE);
1342
1347
1343
1348
else if (incoming == 70 )
1344
1349
PERIODIC_TOGGLE (PD_TASK_BLUETOOTH_READ);
Original file line number Diff line number Diff line change @@ -332,6 +332,8 @@ enum PeriodDisplayValues
332
332
PD_GNSS_DATA_RX_BYTE_COUNT, // 38
333
333
334
334
PD_WEB_SERVER_STATE, // 39
335
+
336
+ PD_OTA_STATE, // 40
335
337
// Add new values before this line
336
338
};
337
339
You can’t perform that action at this time.
0 commit comments