Code Review
/
apps
/
agl-service-can-low-level.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
j1939: Follow updates of the kernel
[apps/agl-service-can-low-level.git]
/
low-can-binding
/
binding
/
low-can-hat.cpp
diff --git
a/low-can-binding/binding/low-can-hat.cpp
b/low-can-binding/binding/low-can-hat.cpp
index
5a26874
..
7e0d94a
100644
(file)
--- 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 ?
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);
}
}
push_n_notify(message);
}
}