From 47629a9d61c92c3a80cd6c9b5544ba331b0c62e8 Mon Sep 17 00:00:00 2001 From: Staars Date: Thu, 13 Dec 2018 12:34:51 +0100 Subject: [PATCH] add debug code to show final command sequence --- sonoff/xsns_15_mhz19.ino | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sonoff/xsns_15_mhz19.ino b/sonoff/xsns_15_mhz19.ino index 6ddcb251a..594a47106 100644 --- a/sonoff/xsns_15_mhz19.ino +++ b/sonoff/xsns_15_mhz19.ino @@ -123,6 +123,9 @@ size_t MhzSendCmd(byte command_id) memcpy_P(&mhz_send[6], kMhzCommands[command_id] + sizeof(kMhzCommands[2]), sizeof(kMhzCommands[2])); mhz_send[8] = MhzCalculateChecksum(mhz_send); + snprintf_P(log_data, sizeof(log_data), PSTR("Final MhzCommand: %x %x %x %x %x %x %x %x %x"),mhz_send[0],mhz_send[1],mhz_send[2],mhz_send[3],mhz_send[4],mhz_send[5],mhz_send[6],mhz_send[7],mhz_send[8]); + AddLog(LOG_LEVEL_DEBUG); + return MhzSerial->write(mhz_send, sizeof(mhz_send)); }