X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=low-can-binding%2Fcan%2Fcan-encoder.cpp;h=113428b98678179597b9b636556a03e2dd5a3ad0;hb=e1caf27db81e9897af7512a0b47e0783593833d5;hp=fb68b879449ada660b2b40a1f6adea8496127590;hpb=2e10ab5760e5d2a6abab7acf47f781442308362f;p=apps%2Fagl-service-can-low-level.git diff --git a/low-can-binding/can/can-encoder.cpp b/low-can-binding/can/can-encoder.cpp index fb68b879..113428b9 100644 --- a/low-can-binding/can/can-encoder.cpp +++ b/low-can-binding/can/can-encoder.cpp @@ -47,7 +47,7 @@ void encoder_t::encode_data(std::shared_ptr sig, std::vector uint8_t len_signal_bytes = 0; if(len_signal_bytes_tmp > 255) { - AFB_ERROR("Error signal %s too long",sig->get_name().c_str()); + AFB_ERROR("Error signal %s too long", sig->get_name().c_str()); } else { @@ -56,13 +56,13 @@ void encoder_t::encode_data(std::shared_ptr sig, std::vector /* if(new_start_bit > 255) { - AFB_ERROR("Error signal %s too long",sig->get_name().c_str()); + AFB_ERROR("Error signal %s too long", sig->get_name().c_str()); } */ uint8_t new_bit_size = 0; if(bit_size > 255) { - AFB_ERROR("Error signal %s to long bit size",sig->get_name().c_str()); + AFB_ERROR("Error signal %s to long bit size", sig->get_name().c_str()); } else { @@ -148,7 +148,7 @@ message_t* encoder_t::build_frame(const std::shared_ptr& signal, uint6 for(const auto& sig: signal->get_message()->get_signals()) { - encode_data(sig,data,false,factor,offset); + encode_data(sig, data, false, factor, offset); } message->set_data(data); return message; @@ -177,7 +177,7 @@ message_t* encoder_t::build_message(const std::shared_ptr& signal, uin data, 0); - return build_frame(signal,value,message, factor, offset); + return build_frame(signal, value, message, factor, offset); } #ifdef USE_FEATURE_J1939 else if(signal->get_message()->is_j1939()) @@ -188,7 +188,7 @@ message_t* encoder_t::build_message(const std::shared_ptr& signal, uin J1939_NO_NAME, signal->get_message()->get_id(), J1939_NO_ADDR); - return build_frame(signal,value,message, factor, offset); + return build_frame(signal, value, message, factor, offset); } #endif else