From 0dcef829862e01ab4272163db3b536c9b70076a0 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Fri, 3 Mar 2017 08:49:00 +0100 Subject: tbf Change-Id: I4e46542258b8dab0c0e266adddf9bfc7a4111376 Signed-off-by: Romain Forlot --- src/can-bus.cpp | 1 + src/can-decoder.cpp | 2 +- src/can-signals.cpp | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/can-bus.cpp b/src/can-bus.cpp index 76f6e45..f35319a 100644 --- a/src/can-bus.cpp +++ b/src/can-bus.cpp @@ -165,6 +165,7 @@ int can_bus_t::init_can_dev() { i++; DEBUG(binder_interface, "Start reading thread"); + NOTICE(binder_interface, "%s device opened and reading", device.c_str()); can_devices_m_[device]->start_reading(*this); } else diff --git a/src/can-decoder.cpp b/src/can-decoder.cpp index 5bc4642..0347139 100644 --- a/src/can-decoder.cpp +++ b/src/can-decoder.cpp @@ -88,7 +88,7 @@ openxc_DynamicField decoder_t::translateSignal(CanSignal& signal, can_message_t& } float value = parseSignalBitfield(signal, message); - DEBUG(binder_interface, "Decoded message: %f", value); + DEBUG(binder_interface, "translateSignal: Decoded message: %f", value); bool send = true; // Must call the decoders every time, regardless of if we are going to diff --git a/src/can-signals.cpp b/src/can-signals.cpp index d761e1e..5683862 100644 --- a/src/can-signals.cpp +++ b/src/can-signals.cpp @@ -36,7 +36,7 @@ std::vector> CAN_MESSAGES = { std::vector> SIGNALS = { { {&(CAN_MESSAGES[MESSAGE_SET_ID][0]), "can.driver_door.open", 2, 4, 1.000000, 0.000000, 0.000000, 0.000000, {10, 0, nullptr}, false, true, nullptr, 0, false, decoder_t::booleanDecoder, nullptr, false, (float)NULL}, - {&(CAN_MESSAGES[MESSAGE_SET_ID][1]), "can.driver_door.close", 2, 4, 1.000000, 0.000000, 0.000000, 0.000000, {10, 0, nullptr}, false, true, nullptr, 0, false, decoder_t::booleanDecoder, nullptr, false, (float)NULL} + {&(CAN_MESSAGES[MESSAGE_SET_ID][1]), "can.driver_door.close", 0, 4, 1.000000, 0.000000, 0.000000, 0.000000, {10, 0, nullptr}, false, true, nullptr, 0, false, decoder_t::booleanDecoder, nullptr, false, (float)NULL} }, }; -- cgit 1.2.3-korg