修正开关按键灰度不变化

修正8266设置DHCP第二个参数错误
This commit is contained in:
arlenxiao 2017-03-14 18:32:46 +08:00
parent a78324b06e
commit f3b3bd7c7d
2 changed files with 6 additions and 4 deletions

View File

@ -175,11 +175,11 @@ void Button_GrayLevel::DelayClose2(int ms)
}
void Button_GrayLevel::SetValue(bool value)
{
{
Button::SetValue(value);
_Value = value;
Button::SetValue(value);
RenewGrayLevel();
}

View File

@ -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)