aboutsummaryrefslogtreecommitdiffstats
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:56:09 +0100
commit459ca2ba521fedb1357725eebd49dd73e2a89506 (patch)
treee4b6c0de0e8dec06f096c9c004235da40d9c1d68
parenta1b6574e5188c5ef113941b080bd20db93d738ba (diff)
Fails write request if CAN signal not writable
Change-Id: I8d75a232ba7fad9cc95f286e521c2451a3a29061 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-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 3145065..edf464b 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;
+ }
}
}