From 33fd70ab601d6a7a5cb561f3c0eca06d3677a535 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Thu, 16 Feb 2017 17:56:14 +0000 Subject: Change Decoder_c class name to decoder_t Change-Id: I0f07e9a21cf067f6e3ceab73524628eb4ec731e9 Signed-off-by: Romain Forlot --- src/can-decoder.h | 2 +- src/can_decode_message.cpp | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/can-decoder.h b/src/can-decoder.h index 249d5b00..3754baef 100644 --- a/src/can-decoder.h +++ b/src/can-decoder.h @@ -18,7 +18,7 @@ #pragma once -class Decoder_c +class decoder_t { private: openxc_DynamicField decoded_value; diff --git a/src/can_decode_message.cpp b/src/can_decode_message.cpp index 762a6acc..6bb6459f 100644 --- a/src/can_decode_message.cpp +++ b/src/can_decode_message.cpp @@ -29,25 +29,25 @@ union DynamicField { - std::char string[100]; - std::double numeric_value; - std::bool boolean_value; + char string[100]; + double numeric_value; + bool boolean_value; }; -void can_decode_message(can_bus_t *can_bus) +void can_decode_message(can_bus_t &can_bus) { can_message_t *can_message; - std:vector *signals; + std:vector signals; std:vector ::iterator signals_i; openxc_VehicleMessage vehicle_message; openxc_DynamicField search_key, ret; - Decoder_c decoder(); + decoder_t decoder(); while(true) { - if(can_message = can_bus->next_can_message()) + if(can_message = can_bus.next_can_message()) { /* First we have to found which CanSignal is */ DynamicField signal_id = (double)can_message.get_id(); -- cgit 1.2.3-korg