From 0e6fbeecf12d5176f0db75ad2752692b3c3a649d Mon Sep 17 00:00:00 2001 From: jaseg Date: Tue, 1 Dec 2020 19:36:02 +0100 Subject: paper: Add initial experimental results --- prototype/fw/src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'prototype/fw/src/main.c') diff --git a/prototype/fw/src/main.c b/prototype/fw/src/main.c index 0998fce..42c1ea7 100644 --- a/prototype/fw/src/main.c +++ b/prototype/fw/src/main.c @@ -73,7 +73,7 @@ int main(void) { int i = 0; while (23) { if (tx_st.remaining_bytes == 0) { - if (i > 1000) { + if (i > 100) { res_buf.req_seq = req_seq; res_buf.res_seq = res_seq; res_seq += 1; @@ -118,7 +118,7 @@ int main(void) { } else { if (rc == sizeof(req_buf)) { crc32_t check_crc = pkt_crc(&req_buf, &req_buf.trailer); - if (check_crc != req_buf.trailer.crc32) { + if (check_crc != req_buf.trailer.crc32 || check_crc == 0 || check_crc == -1) { rx_crc_error += 1; } else { req_seq = req_buf.req_seq; -- cgit