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 {