Communication: Avoid MessageFilter type punning in waitForMessageSync

This commit is contained in:
Paul Hollinsky
2021-12-02 15:00:13 -05:00
parent 78747aa899
commit f8b5710a6c
7 changed files with 34 additions and 21 deletions
@@ -19,7 +19,7 @@ public:
// We still guarantee it's a Main51Message if it matches because of the dynamic_pointer_cast below
Main51MessageFilter(Command command) : command(command) { includeInternalInAny = true; }
bool match(const std::shared_ptr<Message>& message) const {
bool match(const std::shared_ptr<Message>& message) const override {
if(!MessageFilter::match(message)) {
//std::cout << "message filter did not match base for " << message->network << std::endl;
return false;