From 9125823da3fd0c267a1f85dea77192acb8ea5a4e Mon Sep 17 00:00:00 2001 From: Joel Stein Date: Tue, 30 Oct 2018 16:56:57 +0100 Subject: [PATCH] tuya: remove default from switch, since wifi_state is already initialized to 0x02 --- sonoff/xdrv_16_tuyadimmer.ino | 3 --- 1 file changed, 3 deletions(-) diff --git a/sonoff/xdrv_16_tuyadimmer.ino b/sonoff/xdrv_16_tuyadimmer.ino index 4cdc7bef4..91fe17581 100644 --- a/sonoff/xdrv_16_tuyadimmer.ino +++ b/sonoff/xdrv_16_tuyadimmer.ino @@ -238,9 +238,6 @@ void TuyaSetWifiLed(){ case WIFI_RESTART: wifi_state = 0x03; break; - default: - wifi_state = 0x02; - break; } snprintf_P(log_data, sizeof(log_data), "TYA: Set WiFi LED to state %d (%d)", wifi_state, WifiState());