summaryrefslogtreecommitdiff
path: root/prototype/fw/src
diff options
context:
space:
mode:
Diffstat (limited to 'prototype/fw/src')
-rw-r--r--prototype/fw/src/main.c4
1 files changed, 2 insertions, 2 deletions
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;