mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-02 01:10:38 +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) {
|
||||
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 {
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user