From a6e0259551e7ac5c700f6509b2c51b33b207cbaf Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 6 Jan 2024 09:56:36 -1000 Subject: [PATCH] chore: add more todos --- components/ratgdo/ratgdo.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/components/ratgdo/ratgdo.h b/components/ratgdo/ratgdo.h index a8f73d0..d7db1b9 100644 --- a/components/ratgdo/ratgdo.h +++ b/components/ratgdo/ratgdo.h @@ -33,7 +33,14 @@ namespace ratgdo { class RATGDOComponent; typedef Parented RATGDOClient; +#ifdef PROTOCOL_SECPLUSV2 static const uint8_t PACKET_LENGTH = 19; +#endif + +#ifdef PROTOCOL_SECPLUSV1 + // TODO: these are wrong and copied from secplusv2 + static const uint8_t PACKET_LENGTH = 19; +#endif typedef uint8_t WirePacket[PACKET_LENGTH]; const float DOOR_POSITION_UNKNOWN = -1.0;