summaryrefslogtreecommitdiff
path: root/prototype/fw/src
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2020-12-01 19:36:02 +0100
committerjaseg <git@jaseg.de>2020-12-01 19:41:58 +0100
commit0e6fbeecf12d5176f0db75ad2752692b3c3a649d (patch)
tree739a86e4ff5ab2f9fbfb1f60bf5704e3298b7663 /prototype/fw/src
parent2967dcee39e937248c21df59e6dbdd6336f8f9fb (diff)
downloadihsm-0e6fbeecf12d5176f0db75ad2752692b3c3a649d.tar.gz
ihsm-0e6fbeecf12d5176f0db75ad2752692b3c3a649d.tar.bz2
ihsm-0e6fbeecf12d5176f0db75ad2752692b3c3a649d.zip
paper: Add initial experimental results
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;