From 37bda22d6624fbc3ab52f6ddba95e0c82f16bf6a Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 9 Jun 2023 15:15:27 -0500 Subject: [PATCH] fix --- components/ratgdo/ratgdo.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/ratgdo/ratgdo.h b/components/ratgdo/ratgdo.h index 8bc4586..70c54eb 100644 --- a/components/ratgdo/ratgdo.h +++ b/components/ratgdo/ratgdo.h @@ -36,6 +36,10 @@ namespace ratgdo { typedef struct { uint64_t fixed; uint32_t data; + bool operator==(const command& a) const + { + return (fixed == a.fixed && data == a.data); + } } command; typedef struct {