mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-03 05:30:36 +08:00
Remove Flag type from ESP401
clean comments
This commit is contained in:
parent
8fd3c2caf8
commit
b618710db4
@ -58,13 +58,13 @@ bool Commands::ESP401(const char* cmd_params, level_authenticate_type auth_type,
|
|||||||
if (spos.length() == 0) {
|
if (spos.length() == 0) {
|
||||||
response = false;
|
response = false;
|
||||||
}
|
}
|
||||||
if (! (styp == "B" || styp == "S" || styp == "A" || styp == "I" || styp == "F") ) {
|
if (! (styp == "B" || styp == "S" || styp == "A" || styp == "I") ) {
|
||||||
response = false;
|
response = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (response) {
|
if (response) {
|
||||||
//Byte value
|
//Byte value
|
||||||
if ((styp == "B") || (styp == "F")) {
|
if (styp == "B") {
|
||||||
if (!Settings_ESP3D::write_byte (spos.toInt(), sval.toInt())) {
|
if (!Settings_ESP3D::write_byte (spos.toInt(), sval.toInt())) {
|
||||||
response = false;
|
response = false;
|
||||||
} else {
|
} else {
|
||||||
|
@ -255,23 +255,10 @@ uint8_t Settings_ESP3D::get_default_byte_value(int pos)
|
|||||||
res = DEFAULT_STA_IP_MODE;
|
res = DEFAULT_STA_IP_MODE;
|
||||||
break;
|
break;
|
||||||
#endif //WIFI_FEATURE || ETH_FEATURE
|
#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)
|
#if defined (WIFI_FEATURE)
|
||||||
case ESP_AP_CHANNEL:
|
case ESP_AP_CHANNEL:
|
||||||
res = DEFAULT_AP_CHANNEL;
|
res = DEFAULT_AP_CHANNEL;
|
||||||
break;
|
break;
|
||||||
//case ESP_AP_AUTH_TYPE:
|
|
||||||
// res = DEFAULT_AUTH_TYPE;
|
|
||||||
// break;
|
|
||||||
//case ESP_SSID_VISIBLE:
|
|
||||||
// res = DEFAULT_SSID_VISIBLE;
|
|
||||||
// break;
|
|
||||||
#endif //WIFI_FEATURE
|
#endif //WIFI_FEATURE
|
||||||
case ESP_SERIAL_FLAG:
|
case ESP_SERIAL_FLAG:
|
||||||
res = DEFAULT_SERIAL_OUTPUT_FLAG;
|
res = DEFAULT_SERIAL_OUTPUT_FLAG;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user