diff --git a/components/ratgdo/ratgdo.h b/components/ratgdo/ratgdo.h index 7dea501..8d00dae 100644 --- a/components/ratgdo/ratgdo.h +++ b/components/ratgdo/ratgdo.h @@ -25,14 +25,14 @@ extern "C" { #include "ratgdo_child.h" #include "ratgdo_state.h" -#define CODE_LENGTH 19 - namespace esphome { namespace ratgdo { // Forward declare RATGDOClient class RATGDOClient; + static const uint8_t CODE_LENGTH = 19; + struct cmd { uint64_t fixed; uint32_t data;