Remove Flag type from ESP401

clean comments
This commit is contained in:
Luc 2020-12-10 13:37:29 +01:00
parent 8fd3c2caf8
commit b618710db4
2 changed files with 2 additions and 15 deletions

View File

@ -58,13 +58,13 @@ bool Commands::ESP401(const char* cmd_params, level_authenticate_type auth_type,
if (spos.length() == 0) {
response = false;
}
if (! (styp == "B" || styp == "S" || styp == "A" || styp == "I" || styp == "F") ) {
if (! (styp == "B" || styp == "S" || styp == "A" || styp == "I") ) {
response = false;
}
if (response) {
//Byte value
if ((styp == "B") || (styp == "F")) {
if (styp == "B") {
if (!Settings_ESP3D::write_byte (spos.toInt(), sval.toInt())) {
response = false;
} else {

View File

@ -255,23 +255,10 @@ uint8_t Settings_ESP3D::get_default_byte_value(int pos)
res = DEFAULT_STA_IP_MODE;
break;
#endif //WIFI_FEATURE || ETH_FEATURE
//case ESP_AP_PHY_MODE:
//case ESP_STA_PHY_MODE:
// res = DEFAULT_PHY_MODE;
// break;
//case ESP_SLEEP_MODE:
// res = DEFAULT_SLEEP_MODE;
// break;
#if defined (WIFI_FEATURE)
case ESP_AP_CHANNEL:
res = DEFAULT_AP_CHANNEL;
break;
//case ESP_AP_AUTH_TYPE:
// res = DEFAULT_AUTH_TYPE;
// break;
//case ESP_SSID_VISIBLE:
// res = DEFAULT_SSID_VISIBLE;
// break;
#endif //WIFI_FEATURE
case ESP_SERIAL_FLAG:
res = DEFAULT_SERIAL_OUTPUT_FLAG;