From 4a03b1c2cdfd7f31991a462c21697a9c0a3817fd Mon Sep 17 00:00:00 2001 From: Joel Stein Date: Tue, 30 Oct 2018 01:11:08 +0100 Subject: [PATCH] tuya: wifi-state switch debug-arguments --- sonoff/xdrv_16_tuyadimmer.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonoff/xdrv_16_tuyadimmer.ino b/sonoff/xdrv_16_tuyadimmer.ino index 218ef98fd..271cbb476 100644 --- a/sonoff/xdrv_16_tuyadimmer.ino +++ b/sonoff/xdrv_16_tuyadimmer.ino @@ -245,7 +245,7 @@ void TuyaSetWifiLed(){ break; } - snprintf_P(log_data, sizeof(log_data), "TYA: Set WiFi LED to state %d (%d)", WifiState(), wifi_state); + snprintf_P(log_data, sizeof(log_data), "TYA: Set WiFi LED to state %d (%d)", wifi_state, WifiState()); AddLog(LOG_LEVEL_DEBUG); TuyaSerial->write((uint8_t)0x55); // header 55AA