mirror of
https://github.com/bdring/Grbl_Esp32.git
synced 2025-09-01 10:23:19 +02:00
fix conpilation failed if no wifi
This commit is contained in:
@@ -940,11 +940,12 @@ bool COMMANDS::execute_internal_command (int cmd, String cmd_params, level_authe
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
int8_t vi;
|
||||
|
||||
espresponse->print("{\"EEPROM\":[");
|
||||
if(espresponse->client() != CLIENT_WEBUI)espresponse->println("");
|
||||
prefs.begin(NAMESPACE, true);
|
||||
#ifdef ENABLE_WIFI
|
||||
int8_t vi;
|
||||
//1 - Hostname
|
||||
espresponse->print ("{\"F\":\"network\",\"P\":\"");
|
||||
espresponse->print (HOSTNAME_ENTRY);
|
||||
@@ -1223,7 +1224,11 @@ bool COMMANDS::execute_internal_command (int cmd, String cmd_params, level_authe
|
||||
if (! (styp == "B" || styp == "S" || styp == "A" || styp == "I" || styp == "F") ) {
|
||||
response = false;
|
||||
}
|
||||
if ((sval.length() == 0) && !((spos==AP_PWD_ENTRY) || (spos==STA_PWD_ENTRY))){
|
||||
if ((sval.length() == 0)
|
||||
#if defined (ENABLE_WIFI)
|
||||
&& !((spos==AP_PWD_ENTRY) || (spos==STA_PWD_ENTRY))
|
||||
#endif
|
||||
){
|
||||
response = false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user