Fails write request if CAN signal not writable
authorRomain Forlot <romain.forlot@iot.bzh>
Thu, 30 Nov 2017 10:49:15 +0000 (11:49 +0100)
committerRomain Forlot <romain.forlot@iot.bzh>
Thu, 30 Nov 2017 10:49:15 +0000 (11:49 +0100)
Change-Id: I8d75a232ba7fad9cc95f286e521c2451a3a29061
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
low-can-binding/binding/low-can-cb.cpp

index 3145065..edf464b 100644 (file)
@@ -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;
+                       }
                }
        }