This commit is contained in:
Tester23
2024-03-09 23:06:20 +01:00
parent db1167e0ae
commit fe2e22577b
2 changed files with 3 additions and 1 deletions

View File

@@ -282,6 +282,8 @@ float getSunset(const char *s) {
}
#endif
float getRebootReason(const char *s) {
return g_rebootReason;
}

View File

@@ -887,7 +887,7 @@ typedef enum {
s = "Pin Interrupt";
else if (g_rebootReason == 4)
s = "Sleep Timer";
hprintf255(request, "<h5>Reboot reason: %i - %s</h5>", i, s);
hprintf255(request, "<h5>Reboot reason: %i - %s</h5>", g_rebootReason, s);
}
#elif PLATFORM_BL602
char reason[26];