From 4a5414e983500cb83492665411e244cdf45b5331 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 17 Jun 2023 21:19:17 -0500 Subject: [PATCH] debug --- components/ratgdo/ratgdo.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/ratgdo/ratgdo.cpp b/components/ratgdo/ratgdo.cpp index 3809de3..a7e5cdc 100644 --- a/components/ratgdo/ratgdo.cpp +++ b/components/ratgdo/ratgdo.cpp @@ -95,6 +95,8 @@ namespace ratgdo { byte1 = (data >> 16) & 0xff; byte2 = (data >> 24) & 0xff; + ESP_LOGV(TAG, "command: cmd=%04x nibble=%02x byte1=%02x byte2=%02x fixed=%010"PRIx64" data=%08"PRIx32, cmd, nibble, byte1, byte2, fixed, data); + if (cmd == STATUS_CMD) { this->doorState = nibble; this->lightState = (byte2 >> 1) & 1; @@ -124,7 +126,7 @@ namespace ratgdo { ESP_LOGV(TAG, "Motion: %d (toggle)", this->motionState); } else { // 0x84 -- is it used? - ESP_LOGV(TAG, "Unknown command: cmd=%04x nibble=%02x byte1=%02x byte2=%02x fixed=%010"PRIx64" data=%08"PRIx32, cmd, nibble, byte1, byte2, fixed, data); + //ESP_LOGV(TAG, "Unknown command: cmd=%04x nibble=%02x byte1=%02x byte2=%02x fixed=%010"PRIx64" data=%08"PRIx32, cmd, nibble, byte1, byte2, fixed, data); } return cmd; }