aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_core.c
diff options
context:
space:
mode:
authorChristopher Peplin <chris.peplin@rhubarbtech.com>2014-02-27 15:53:19 -0500
committerChristopher Peplin <chris.peplin@rhubarbtech.com>2014-02-27 15:53:19 -0500
commita8f4bf42ee73ede0d2d3ddaf6c312c756c042a6b (patch)
treec41ffae2a8e08a238d5ab21fe594782317d41208 /tests/test_core.c
parentc01a88ba1e56d455c7187a52a5e244500a0d6b0f (diff)
Increase size of arb ID to uint32_t to fit extended IDs.
Diffstat (limited to 'tests/test_core.c')
-rw-r--r--tests/test_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_core.c b/tests/test_core.c
index 78e13e8d..73b47af0 100644
--- a/tests/test_core.c
+++ b/tests/test_core.c
@@ -30,7 +30,7 @@ START_TEST (test_default_frame_padding_on)
{
ck_assert(SHIMS.frame_padding);
const uint8_t payload[] = {0x12, 0x34};
- uint16_t arbitration_id = 0x2a;
+ uint32_t arbitration_id = 0x2a;
isotp_send(&SHIMS, arbitration_id, payload, sizeof(payload), message_sent);
ck_assert_int_eq(last_message_sent_arb_id, arbitration_id);
fail_unless(last_message_sent_status);
@@ -44,7 +44,7 @@ START_TEST (test_disabled_frame_padding)
{
SHIMS.frame_padding = false;
const uint8_t payload[] = {0x12, 0x34};
- uint16_t arbitration_id = 0x2a;
+ uint32_t arbitration_id = 0x2a;
isotp_send(&SHIMS, arbitration_id, payload, sizeof(payload), message_sent);
ck_assert_int_eq(last_message_sent_arb_id, arbitration_id);
fail_unless(last_message_sent_status);