From e86b3ccdc23f70a6f692801972cf0aaabbed7e56 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Wed, 1 Mar 2017 19:29:31 +0100 Subject: Change id to an hexadecimal value. Change-Id: Iecf8179e2885a7d1392a854bcd56e731fed5bba0 Signed-off-by: Romain Forlot --- src/can-signals.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/can-signals.cpp b/src/can-signals.cpp index 5f23c40..82ee0de 100644 --- a/src/can-signals.cpp +++ b/src/can-signals.cpp @@ -23,7 +23,7 @@ #include "low-can-binding.hpp" std::vector> CAN_MESSAGES = { - {{620, CanMessageFormat::STANDARD, {10, 0, nullptr}, false, (uint8_t)NULL}}, + {{0x620, CanMessageFormat::STANDARD, {10, 0, nullptr}, false, (uint8_t)NULL}}, }; /** @@ -58,7 +58,7 @@ size_t getSignalCount() std::vector find_can_signals(const openxc_DynamicField &key) { - std::vector signals; + std::vector signals = {}; switch(key.type) { @@ -79,9 +79,6 @@ std::vector find_can_signals(const openxc_DynamicField &key) break; default: ERROR(binder_interface, "find_can_signals: wrong openxc_DynamicField specified. Use openxc_DynamicField_Type_NUM or openxc_DynamicField_Type_STRING type only."); - CanSignal cs; - ::memset(&cs, 0, sizeof(CanSignal)); - signals.push_back(cs); return signals; break; } -- cgit 1.2.3-korg