From 147383498d6659a1c7bda42b6994c57e0c55941f Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 7 Jun 2023 20:15:09 -0500 Subject: [PATCH] cleanups --- components/ratgdo/ratgdo.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/ratgdo/ratgdo.cpp b/components/ratgdo/ratgdo.cpp index 04225c7..e0bb5cd 100644 --- a/components/ratgdo/ratgdo.cpp +++ b/components/ratgdo/ratgdo.cpp @@ -192,6 +192,10 @@ namespace ratgdo { ESP_LOGD(TAG, "Light: %d (toggle)", light); } else if (cmd == 0x84) { + } else if (cmd == 0x280) { + ESP_LOGD(TAG, "Pressed: %s", "pressed" if byte1 == 1 else "released"); + } else if (cmd == 0x48c) { + ESP_LOGD(TAG, "Openings: %d", (byte1 << 8) | byte2); } else if (cmd == 0x285) { motion = 1; // toggle bit ESP_LOGD(TAG, "Motion: %d (toggle)", motion);