summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
1a90ede)
Change-Id: Id04d04a07e43738f7379e33fa7c6022eaa426343
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
{
for(const auto& sig: sf.can_signals)
{
{
for(const auto& sig: sf.can_signals)
{
- cf = encoder_t::build_frame(sig, value);
- const std::string bus_name = sig->get_message()->get_bus_name();
- rc = send_frame(bus_name, cf);
+ if(sig->get_writable())
+ {
+ cf = encoder_t::build_frame(sig, value);
+ const std::string bus_name = sig->get_message()->get_bus_name();
+ rc = send_frame(bus_name, cf);
+ }
+ else
+ {AFB_NOTICE("%s isn't writable. Message not sent.", sig->get_name().c_str());}