$failedBoots variable

This commit is contained in:
openshwprojects
2023-04-18 14:19:39 +02:00
parent 3d1c31d212
commit 3ddabbed40
4 changed files with 11 additions and 7 deletions

View File

@ -810,7 +810,7 @@ int http_fn_index(http_request_t* request) {
hprintf255(request, "</h5>");
}
hprintf255(request, "<h5>Cfg size: %i, change counter: %i, ota counter: %i, boot incompletes %i (might change to 0 if you wait to 30 sec)!</h5>",
sizeof(g_cfg), g_cfg.changeCounter, g_cfg.otaCounter, Main_GetLastRebootBootFailures());
sizeof(g_cfg), g_cfg.changeCounter, g_cfg.otaCounter, g_bootFailures);
inputName = CFG_GetPingHost();
if (inputName && *inputName && CFG_GetPingDisconnectedSecondsToRestart()) {
@ -893,7 +893,7 @@ int http_fn_index(http_request_t* request) {
#endif
if (bSafeMode) {
hprintf255(request, "<h5 class='safe'>You are in safe mode (AP mode) because full reboot failed %i times. ",
Main_GetLastRebootBootFailures());
g_bootFailures);
hprintf255(request, "Pins, relays, etc are disabled.</h5>");
}