show toast when reboot is needed, or error restart happened

less WTF, more information
This commit is contained in:
Frank
2024-10-14 11:25:41 +02:00
parent 0dd036cdce
commit 68536635d7
4 changed files with 39 additions and 1 deletions

View File

@@ -2011,8 +2011,20 @@ function readState(s,command=false)
case 37:
errstr = "no memory for LEDs buffer.";
break;
case 90:
errstr = "Unexpected Restart. Check serial monitor.";
break;
case 91:
errstr = "Brownout Restart.";
break;
case 98:
errstr = "Please reboot WLED to activate changed settings.";
break;
case 99:
errstr = "Please switch your device off and back on.";
break;
}
showToast('Error ' + s.error + ": " + errstr, true);
showToast(((s.error < 33)?'Error ':'Warning ') + s.error + ": " + errstr, (s.error < 35)||(s.error > 90));
}
selectedPal = i.pal;