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
Change way to convert simplemessage into a json
[apps/agl-service-can-low-level.git]
/
src
/
can_reader.cpp
diff --git
a/src/can_reader.cpp
b/src/can_reader.cpp
index
4be1546
..
24bc600
100644
(file)
--- a/
src/can_reader.cpp
+++ b/
src/can_reader.cpp
@@
-20,11
+20,11
@@
void can_reader(can_bus_dev_t &can_bus_dev, can_bus_t& can_bus)
{
void can_reader(can_bus_dev_t &can_bus_dev, can_bus_t& can_bus)
{
- can_message_t can_message(
interface
);
+ can_message_t can_message(
can_bus.interface_
);
while(can_bus_dev.is_running())
{
while(can_bus_dev.is_running())
{
- can_message.convert_from_canfd_frame(can_bus_dev.read(
interface
));
+ can_message.convert_from_canfd_frame(can_bus_dev.read(
can_bus.interface_
));
can_bus.push_new_can_message(can_message);
}
}
\ No newline at end of file
can_bus.push_new_can_message(can_message);
}
}
\ No newline at end of file