Small project to display some OBD values from the Toyota GT86/ Subaru BRZ/ Scion FRS on an OLED display.
Dependencies: Adafruit_GFX MODSERIAL mbed-rtos mbed
Diff: IsoTpHandler.cpp
- Revision:
- 3:eb807d330292
- Parent:
- 2:d3d61d9d323e
- Child:
- 4:0e2d6cc31afb
--- a/IsoTpHandler.cpp Sun Apr 27 14:50:13 2014 +0000 +++ b/IsoTpHandler.cpp Sun Apr 27 17:11:32 2014 +0000 @@ -1,7 +1,11 @@ #include "IsoTpHandler.h" +#include "PidDecoder.h" + #include "MODSERIAL.h" extern MODSERIAL pc; +static PidDecoder pidDecoder; + enum IsoTpMessageType { SINGLE_FRAME = 0, ///< The single frame transferred contains the complete payload of up to 7 bytes (normal addressing) or 6 bytes (extended addressing) @@ -172,6 +176,8 @@ pc.printf("%X ", data[i]); } pc.printf("\r\n"); + + pidDecoder.decode(data, length); } void IsoTpHandler::init_consequtive_reading(uint16_t messageSize, const uint8_t* data)