Code Review
/
apps
/
low-level-can-service.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Fails write request if CAN signal not writable
[apps/low-level-can-service.git]
/
low-can-binding
/
binding
/
low-can-cb.cpp
diff --git
a/low-can-binding/binding/low-can-cb.cpp
b/low-can-binding/binding/low-can-cb.cpp
index
3145065
..
edf464b
100644
(file)
--- a/
low-can-binding/binding/low-can-cb.cpp
+++ b/
low-can-binding/binding/low-can-cb.cpp
@@
-463,7
+463,10
@@
static int write_signal(const std::string& name, uint64_t value)
rc = send_frame(bus_name, cf);
}
else
- {AFB_NOTICE("%s isn't writable. Message not sent.", sig->get_name().c_str());}
+ {
+ AFB_WARNING("%s isn't writable. Message not sent.", sig->get_name().c_str());
+ return -1;
+ }
}
}