1
0
mirror of https://github.com/bdring/Grbl_Esp32.git synced 2025-09-03 11:22:38 +02:00

Fix false error when reset

This commit is contained in:
Luc
2019-04-14 10:39:13 +02:00
parent 2f44ddef56
commit 52283a8c82

View File

@@ -460,13 +460,13 @@ void WiFiConfig::reset_settings(){
error = true;
}
sval = DEFAULT_TOKEN;
if (prefs.putString(NOTIFICATION_T1, sval) == 0){
if (prefs.putString(NOTIFICATION_T1, sval) != sval.length()){
error = true;
}
if (prefs.putString(NOTIFICATION_T2, sval) == 0){
if (prefs.putString(NOTIFICATION_T2, sval) != sval.length()){
error = true;
}
if (prefs.putString(NOTIFICATION_TS, sval) == 0){
if (prefs.putString(NOTIFICATION_TS, sval) != sval.length()){
error = true;
}