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

Merge pull request #124 from luc-github/Devt

Fix another false error due to wrong copy/paste, thank you @bdring
This commit is contained in:
bdring
2019-04-18 10:37:00 -05:00
committed by GitHub

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");