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

Fix another false error due to wrong copy/paste, thank you @bdring

This commit is contained in:
Luc
2019-04-17 20:16:08 +02:00
parent 52283a8c82
commit b6cd4e3516

View File

@@ -369,7 +369,7 @@ bool COMMANDS::execute_internal_command (int cmd, String cmd_params, level_authe
}
Preferences prefs;
prefs.begin(NAMESPACE, false);
if (prefs.putInt(AP_IP_ENTRY, wifi_config.IP_int_from_string(parameter)) != parameter.length()){
if (prefs.putInt(AP_IP_ENTRY, wifi_config.IP_int_from_string(parameter)) == 0){
response = false;
if(espresponse)espresponse->println ("Error: Set failed!");
} else if(espresponse)espresponse->println ("ok");