summaryrefslogtreecommitdiffstats
path: root/src/obd2/obd2.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/obd2/obd2.h')
-rw-r--r--src/obd2/obd2.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/obd2/obd2.h b/src/obd2/obd2.h
index 75894835..2bb6c77f 100644
--- a/src/obd2/obd2.h
+++ b/src/obd2/obd2.h
@@ -133,9 +133,9 @@ typedef enum {
} DiagnosticPidRequestType;
typedef struct {
- SetTimerShim set_timer;
- SendCanMessageShim send_can_message;
LogShim log;
+ SendCanMessageShim send_can_message;
+ SetTimerShim set_timer;
} DiagnosticShims;
DiagnosticShims diagnostic_init_shims(LogShim log,
@@ -147,8 +147,8 @@ DiagnosticRequestHandle diagnostic_request(DiagnosticShims* shims,
// decide mode 0x1 / 0x22 based on pid type
DiagnosticRequestHandle diagnostic_request_pid(DiagnosticShims* shims,
- DiagnosticPidRequestType pid_request_type, uint16_t pid,
- DiagnosticResponseReceived callback);
+ DiagnosticPidRequestType pid_request_type, uint16_t arbitration_id,
+ uint16_t pid, DiagnosticResponseReceived callback);
DiagnosticRequestHandle diagnostic_request_malfunction_indicator_status(
DiagnosticShims* shims,