diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-15 23:10:46 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-16 17:21:57 +0100 |
commit | 53cd923a034162273fea2f4fb045b28686f51df5 (patch) | |
tree | 43e9a7fbf27646d88b11d1f7281a6b2c2be255bd /src/can/can-decoder.hpp | |
parent | 865c6c6d6f4174c5874e4cd5136832c25a3b1198 (diff) |
Make available decoding OBD2 messages method to be use as callback.
Change the method to static 'cause it will be call from outside of the class.
Change-Id: I88dcd845559fac7892cd489cd6e8198c143ee2a8
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/can/can-decoder.hpp')
-rw-r--r-- | src/can/can-decoder.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/can/can-decoder.hpp b/src/can/can-decoder.hpp index 326a2b73..ee601c6f 100644 --- a/src/can/can-decoder.hpp +++ b/src/can/can-decoder.hpp @@ -41,4 +41,7 @@ public: static openxc_DynamicField decodeSignal(can_signal_t& signal, float value, const std::vector<can_signal_t>& signals, bool* send); + + static float decode_obd2_response(const DiagnosticResponse* response, float parsedPayload); + };
\ No newline at end of file |