summaryrefslogtreecommitdiffstats
path: root/low-can-binding/binding/low-can-hat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'low-can-binding/binding/low-can-hat.cpp')
-rw-r--r--low-can-binding/binding/low-can-hat.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/low-can-binding/binding/low-can-hat.cpp b/low-can-binding/binding/low-can-hat.cpp
index 5a268745..7e0d94a4 100644
--- a/low-can-binding/binding/low-can-hat.cpp
+++ b/low-can-binding/binding/low-can-hat.cpp
@@ -71,7 +71,9 @@ int read_message(sd_event_source *event_source, int fd, uint32_t revents, void *
std::shared_ptr<message_t> message = s->read_message();
// Sure we got a valid CAN message ?
- if (message->get_id() && message->get_length() && !(message->get_flags() & INVALID_FLAG))
+ if (message->get_id() &&
+ message->get_length() &&
+ ! (message->get_flags() & INVALID_FLAG) )
push_n_notify(message);
}
}