From b6cd4e35161122ce58271aa8ef0fcc6811f10756 Mon Sep 17 00:00:00 2001 From: Luc Date: Wed, 17 Apr 2019 20:16:08 +0200 Subject: [PATCH] Fix another false error due to wrong copy/paste, thank you @bdring --- Grbl_Esp32/commands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Grbl_Esp32/commands.cpp b/Grbl_Esp32/commands.cpp index 04175723..7a96794d 100644 --- a/Grbl_Esp32/commands.cpp +++ b/Grbl_Esp32/commands.cpp @@ -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");