mirror of
https://github.com/EyeTrackVR/OpenIris.git
synced 2025-11-04 15:39:42 +08:00
update
- change if to else if for handlers in baseAPI
This commit is contained in:
parent
1be8e5fe19
commit
8fde33b172
@ -83,7 +83,7 @@ void BaseAPI::setWiFi(AsyncWebServerRequest *request)
|
|||||||
{
|
{
|
||||||
networkName = param->value().c_str();
|
networkName = param->value().c_str();
|
||||||
}
|
}
|
||||||
if (param->name() == "ssid")
|
else if (param->name() == "ssid")
|
||||||
{
|
{
|
||||||
ssid = param->value().c_str();
|
ssid = param->value().c_str();
|
||||||
}
|
}
|
||||||
@ -186,15 +186,15 @@ void BaseAPI::setDeviceConfig(AsyncWebServerRequest *request)
|
|||||||
{
|
{
|
||||||
hostname = param->value().c_str();
|
hostname = param->value().c_str();
|
||||||
}
|
}
|
||||||
if (param->name() == "service")
|
else if (param->name() == "service")
|
||||||
{
|
{
|
||||||
service = param->value().c_str();
|
service = param->value().c_str();
|
||||||
}
|
}
|
||||||
if (param->name() == "ota_port")
|
else if (param->name() == "ota_port")
|
||||||
{
|
{
|
||||||
ota_port = atoi(param->value().c_str());
|
ota_port = atoi(param->value().c_str());
|
||||||
}
|
}
|
||||||
if (param->name() == "ota_password")
|
else if (param->name() == "ota_password")
|
||||||
{
|
{
|
||||||
ota_password = param->value().c_str();
|
ota_password = param->value().c_str();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user