From e41b574b9d43092917b5ab1070fb044f2a04aa79 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 7 Jun 2023 20:16:20 -0500 Subject: [PATCH] cleanups --- components/ratgdo/ratgdo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ratgdo/ratgdo.cpp b/components/ratgdo/ratgdo.cpp index b2bbfb4..03304d9 100644 --- a/components/ratgdo/ratgdo.cpp +++ b/components/ratgdo/ratgdo.cpp @@ -193,7 +193,7 @@ namespace ratgdo { } else if (cmd == 0x84) { } else if (cmd == 0x280) { - ESP_LOGD(TAG, "Pressed: %s", "pressed" if byte1 == 1 else "released"); + ESP_LOGD(TAG, "Pressed: %s", byte1 == 1 ? "pressed" : "released"); } else if (cmd == 0x48c) { ESP_LOGD(TAG, "Openings: %d", (byte1 << 8) | byte2); } else if (cmd == 0x285) {