diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-01 19:29:31 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-01 19:29:31 +0100 |
commit | e86b3ccdc23f70a6f692801972cf0aaabbed7e56 (patch) | |
tree | 873fb38aa71a0ebe46b4e78d7c3a5a79c44c8135 /src/can-signals.cpp | |
parent | 98c8bf71990fac7d9d1c27b4044577864d069265 (diff) |
Change id to an hexadecimal value.
Change-Id: Iecf8179e2885a7d1392a854bcd56e731fed5bba0
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/can-signals.cpp')
-rw-r--r-- | src/can-signals.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/can-signals.cpp b/src/can-signals.cpp index 5f23c40a..82ee0dea 100644 --- a/src/can-signals.cpp +++ b/src/can-signals.cpp @@ -23,7 +23,7 @@ #include "low-can-binding.hpp" std::vector<std::vector<CanMessageDefinition>> 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<CanSignal> find_can_signals(const openxc_DynamicField &key) { - std::vector<CanSignal> signals; + std::vector<CanSignal> signals = {}; switch(key.type) { @@ -79,9 +79,6 @@ std::vector<CanSignal> 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; } |