From: Romain Forlot Date: Thu, 30 Nov 2017 10:49:15 +0000 (+0100) Subject: Fails write request if CAN signal not writable X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=b25c6cba147a78763a05d42bf612206c52189c18;p=apps%2Flow-level-can-service.git Fails write request if CAN signal not writable Change-Id: I8d75a232ba7fad9cc95f286e521c2451a3a29061 Signed-off-by: Romain Forlot --- 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; + } } }