Skip to content

Commit

Permalink
Fix another false error due to wrong copy/paste, thank you @bdring
Browse files Browse the repository at this point in the history
  • Loading branch information
luc-github committed Apr 17, 2019
1 parent 52283a8 commit b6cd4e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Grbl_Esp32/commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit b6cd4e3

Please sign in to comment.