aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/uds/uds.c2
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;