1
0
mirror of https://github.com/bdring/Grbl_Esp32.git synced 2025-09-02 10:53:01 +02:00

Merge pull request #120 from luc-github/Devt

Fix false error when reset wifi
This commit is contained in:
bdring
2019-04-14 10:55:10 -05:00
committed by GitHub

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;
}