Skip to content

Commit

Permalink
tuya: fix harmless warning
Browse files Browse the repository at this point in the history
Just handle this thing with a plain if for the time being
  • Loading branch information
mcspr committed Apr 3, 2021
1 parent 612e22c commit 0ee55ba
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions code/espurna/tuya.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -652,11 +652,8 @@ namespace tuya {

::espurnaRegisterLoop(loop);
::wifiRegister([](wifi::Event event) {
switch (event) {
case wifi::Event::StationConnected:
case wifi::Event::StationDisconnected:
if ((event == wifi::Event::StationConnected) || (event == wifi::Event::StationDisconnected)) {
sendWiFiStatus();
break;
}
});
}
Expand Down

0 comments on commit 0ee55ba

Please sign in to comment.