From 0e39b07c24203b0e1205cda8b23cf98e3484eae7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Sat, 24 Mar 2018 00:12:06 +0100 Subject: [PATCH] Return target state in relay terminal command --- code/espurna/relay.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/espurna/relay.ino b/code/espurna/relay.ino index c894e6d1..b9f845d7 100644 --- a/code/espurna/relay.ino +++ b/code/espurna/relay.ino @@ -802,7 +802,7 @@ void _relayInitCommands() { relayStatus(id, value == 1); } } - DEBUG_MSG_P(PSTR("Status: %s\n"), relayStatus(id) ? "true" : "false"); + DEBUG_MSG_P(PSTR("Status: %s\n"), _relays[id].target_status ? "true" : "false"); DEBUG_MSG_P(PSTR("+OK\n")); });