diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2018-11-20 19:35:22 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-11-22 11:10:10 +0100 |
commit | 731624acf76d58e1847f797e15747ccc94c052f0 (patch) | |
tree | a92d820222db9894a45fb6d45fc03c93fe26cac9 /low-can-binding | |
parent | 4b9b30af740ca98bf1452703da0de5cbfdd32bb2 (diff) |
Code format and style changes
Change-Id: Icfb7cdb53deba8d82b91f884c6b815adf0f17adf
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'low-can-binding')
-rw-r--r-- | low-can-binding/can/can-bus.cpp | 2 | ||||
-rw-r--r-- | low-can-binding/can/can-encoder.cpp | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/low-can-binding/can/can-bus.cpp b/low-can-binding/can/can-bus.cpp index 040cb5f8..49a6b60a 100644 --- a/low-can-binding/can/can-bus.cpp +++ b/low-can-binding/can/can-bus.cpp @@ -101,7 +101,7 @@ void can_bus_t::process_can_signals(const can_message_t& can_message, std::map<i { std::lock_guard<std::mutex> decoded_can_message_lock(decoded_can_message_mutex_); push_new_vehicle_message(subscription_id, vehicle_message); - AFB_DEBUG("%s CAN signals processed.", sig->get_name().c_str()); + AFB_DEBUG("%s CAN signals processed.", sig->get_name().c_str()); } } } diff --git a/low-can-binding/can/can-encoder.cpp b/low-can-binding/can/can-encoder.cpp index d90e08da..4f1efa2a 100644 --- a/low-can-binding/can/can-encoder.cpp +++ b/low-can-binding/can/can-encoder.cpp @@ -43,12 +43,12 @@ const can_frame encoder_t::build_frame(const std::shared_ptr<can_signal_t>& sign { float last_value = sig->get_last_value(); bitfield_encode_float(last_value, - sig->get_bit_position(), - sig->get_bit_size(), - sig->get_factor(), - sig->get_offset(), - cf.data, - CAN_MAX_DLEN); + sig->get_bit_position(), + sig->get_bit_size(), + sig->get_factor(), + sig->get_offset(), + cf.data, + CAN_MAX_DLEN); } return cf; |