diff options
author | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2013-12-27 19:04:27 -0500 |
---|---|---|
committer | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2013-12-27 19:04:27 -0500 |
commit | 451ee4faa42eb304b27aeeef8c75387b4a12a614 (patch) | |
tree | 5920834e5b8d0de0434a491b42a9c03acee42ed4 /tests/common.c | |
parent | 34a7c0ca08683eb83d6b6b3d5a6a8fb2f7d5b918 (diff) |
Draft progress implementing single frame rx.
Diffstat (limited to 'tests/common.c')
-rw-r--r-- | tests/common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/common.c b/tests/common.c index fb26c4af..9aff39a1 100644 --- a/tests/common.c +++ b/tests/common.c @@ -26,6 +26,7 @@ void debug(const char* format, ...) { va_list args; va_start(args, format); vprintf(format, args); + printf("\r\n"); va_end(args); } @@ -39,6 +40,7 @@ void mock_set_timer(uint16_t time_ms, void (*callback)) { void message_received(const uint16_t arbitration_id, const uint8_t* payload, const uint16_t size) { debug("Received ISO-TP message:"); + message_was_received = true; log_isotp_message(arbitration_id, payload, size); last_message_received_arb_id = arbitration_id; last_message_received_payload_size = size; @@ -54,7 +56,6 @@ void message_sent(const bool success, const uint16_t arbitration_id, } log_isotp_message(arbitration_id, payload, size); - message_was_received = true; last_message_sent_arb_id = arbitration_id; last_message_sent_payload_size = size; memcpy(last_message_sent_payload, payload, size); |