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;