aboutsummaryrefslogtreecommitdiffstats
path: root/low-can-binding/binding/low-can-cb.cpp
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-11-30 11:49:15 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2017-11-30 11:49:15 +0100
commitb25c6cba147a78763a05d42bf612206c52189c18 (patch)
tree45e882c5efc5e85588d210ba8e4aaf7a863b7347 /low-can-binding/binding/low-can-cb.cpp
parentce692241aed98a45da6c830686bd42ceef29ef6b (diff)
Fails write request if CAN signal not writable
Change-Id: I8d75a232ba7fad9cc95f286e521c2451a3a29061 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'low-can-binding/binding/low-can-cb.cpp')
-rw-r--r--low-can-binding/binding/low-can-cb.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/low-can-binding/binding/low-can-cb.cpp b/low-can-binding/binding/low-can-cb.cpp
index 3145065a..edf464bc 100644
--- 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;
+ }
}
}