From 0ee55ba5c001105ca6daa6cb1103e27d3cd462c8 Mon Sep 17 00:00:00 2001 From: Maxim Prokhorov Date: Sat, 3 Apr 2021 20:24:48 +0300 Subject: [PATCH] tuya: fix harmless warning Just handle this thing with a plain if for the time being --- code/espurna/tuya.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/code/espurna/tuya.cpp b/code/espurna/tuya.cpp index 4f476e7341..39b3526613 100644 --- a/code/espurna/tuya.cpp +++ b/code/espurna/tuya.cpp @@ -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; } }); }