OBD CAN sensors #1733
This commit is contained in:
parent
6598032fd7
commit
7cb3952b8b
|
@ -193,7 +193,7 @@ void obdOnCanPacketRx(const CANRxFrame& rx) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (rx.data8[0] == 2 && rx.data8[1] == OBD_CURRENT_DATA) {
|
||||
if (rx.data8[0] == _OBD_2 && rx.data8[1] == OBD_CURRENT_DATA) {
|
||||
handleGetDataRequest(rx);
|
||||
} else if (rx.data8[0] == 1 && rx.data8[1] == OBD_STORED_DIAGNOSTIC_TROUBLE_CODES) {
|
||||
// todo: implement stored/pending difference?
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
#define OBD_TEST_RESPONSE 0x7E8
|
||||
|
||||
#define OBD_CURRENT_DATA 1
|
||||
#define _OBD_2 2
|
||||
#define OBD_STORED_DIAGNOSTIC_TROUBLE_CODES 3
|
||||
#define OBD_PENDING_DIAGNOSTIC_TROUBLE_CODES 7
|
||||
|
||||
|
|
Loading…
Reference in New Issue