fix link option
[apps/agl-service-can-low-level.git] / low-can-binding / can / can-decoder.cpp
index 61bfe75..b77e13e 100644 (file)
@@ -132,7 +132,7 @@ openxc_DynamicField decoder_t::stateDecoder(can_signal_t& signal,
        if(signal_state.size() <= 0)
        {
                *send = false;
-               ERROR("No state found with index: %d", (int)value);
+               AFB_ERROR("No state found with index: %d", (int)value);
        }
        return decoded_value;
 }
@@ -157,7 +157,7 @@ openxc_DynamicField decoder_t::translateSignal(can_signal_t& signal, const can_m
        const std::vector<std::shared_ptr<can_signal_t> >& signals, bool* send)
 {
        float value = decoder_t::parseSignalBitfield(signal, message);
-       DEBUG("Decoded message from parseSignalBitfield: %f", value);
+       AFB_DEBUG("Decoded message from parseSignalBitfield: %f", value);
 
        // Must call the decoders every time, regardless of if we are going to
        // decide to send the signal or not.
@@ -241,4 +241,4 @@ openxc_DynamicField decoder_t::decodeSignal( can_signal_t& signal,
 float decoder_t::decode_obd2_response(const DiagnosticResponse* response, float parsed_payload)
 {
        return diagnostic_decode_obd2_pid(response);
-}
\ No newline at end of file
+}