diff options
author | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2014-03-14 15:37:15 -0400 |
---|---|---|
committer | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2014-03-14 15:37:15 -0400 |
commit | bc25d4a2fe7afb9ad96e718071be7e7153572956 (patch) | |
tree | 4445ca3a6ae72436243e3769d4a8f222100cadcd /src | |
parent | 2fbfc901b7d17e87b67e3bef1d2f52e0a19a70be (diff) |
Force 0x3e "pid" (actually service ID) to be 1 byte.
Diffstat (limited to 'src')
-rw-r--r-- | src/uds/uds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uds/uds.c b/src/uds/uds.c index 1157949c..e0de344d 100644 --- a/src/uds/uds.c +++ b/src/uds/uds.c @@ -53,7 +53,7 @@ static void setup_receive_handle(DiagnosticRequestHandle* handle) { static uint16_t autoset_pid_length(uint8_t mode, uint16_t pid, uint8_t pid_length) { if(pid_length == 0) { - if(pid > 0xffff || mode > 10) { + if(pid > 0xffff || (mode != 0x3e && mode > 0xa)) { pid_length = 2; } else { pid_length = 1; |