parent
a78324b06e
commit
f3b3bd7c7d
|
@ -176,10 +176,10 @@ void Button_GrayLevel::DelayClose2(int ms)
|
|||
|
||||
void Button_GrayLevel::SetValue(bool value)
|
||||
{
|
||||
_Value = value;
|
||||
|
||||
Button::SetValue(value);
|
||||
|
||||
_Value = value;
|
||||
|
||||
RenewGrayLevel();
|
||||
}
|
||||
|
||||
|
|
|
@ -906,7 +906,9 @@ bool Esp8266::SetDHCP(NetworkType mode, bool enable)
|
|||
}
|
||||
|
||||
String cmd = "AT+CWDHCP=";
|
||||
return SendCmd(cmd + m + ',' + enable);
|
||||
String n = enable ? "1" : "0";
|
||||
|
||||
return SendCmd(cmd + m + ',' + n);
|
||||
}
|
||||
|
||||
MacAddress Esp8266::GetMAC(bool sta)
|
||||
|
|
Loading…
Reference in New Issue