aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Nelson <znelson1@ford.com>2016-10-05 10:25:09 -0700
committerGitHub <noreply@github.com>2016-10-05 10:25:09 -0700
commite506334e270d77b20c0bc259ac6c7d8c9b702b7a (patch)
tree69cd198b323ec496a133a19e90a7776520daab36
parentb28b20aa8e3d14745ed90f80013878e2ccd9ff6c (diff)
Reduce max response payload size. (#7)
* reduce max payload size. see OpenXC vi-firmware issue #375 https://github.com/openxc/vi-firmware/issues/375. * update isotp dependency with reduce isotp message size.
m---------deps/isotp-c35
-rw-r--r--src/uds/uds_types.h2
2 files changed, 6 insertions, 31 deletions
diff --git a/deps/isotp-c b/deps/isotp-c
-Subproject 4e7375321a029a32989bc7546329c385e6edb80
+Subproject ee24440b7c123ab1b0317e57be33e837a1cb51f
diff --git a/src/uds/uds_types.h b/src/uds/uds_types.h
index 66bf7437..4ebc150c 100644
--- a/src/uds/uds_types.h
+++ b/src/uds/uds_types.h
@@ -11,7 +11,7 @@ extern "C" {
// TODO This still doesn't have enough space for the largest possible
// multiframe response. May need to dynamically allocate in the future.
-#define MAX_UDS_RESPONSE_PAYLOAD_LENGTH 255
+#define MAX_UDS_RESPONSE_PAYLOAD_LENGTH 127
#define MAX_UDS_REQUEST_PAYLOAD_LENGTH 7
#define MAX_RESPONDING_ECU_COUNT 8
#define VIN_LENGTH 17