summaryrefslogtreecommitdiff
path: root/fw/fe310/test/modem.c
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2021-08-27 02:27:38 +0200
committerUros Majstorovic <majstor@majstor.org>2021-08-27 02:27:38 +0200
commit331fcf483d9eac2e65e40ec35cf7558132c7c86f (patch)
treec12659e6f395a39108a419a385a9e82655cc6c49 /fw/fe310/test/modem.c
parent0ba3fd9a0f1bfc599afb209df383cc5c98175b98 (diff)
test app prints bq25895 regs
Diffstat (limited to 'fw/fe310/test/modem.c')
-rw-r--r--fw/fe310/test/modem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fw/fe310/test/modem.c b/fw/fe310/test/modem.c
index a2bb0c6..b9fd1b1 100644
--- a/fw/fe310/test/modem.c
+++ b/fw/fe310/test/modem.c
@@ -69,7 +69,7 @@ static void handle_uart(unsigned char type) {
while ((c = eos_uart_getc(0)) != EOS_ERR_EMPTY) {
buf[i] = c;
i++;
- if (i == EOS_NET_SIZE_BUF) break;
+ if (i == EOS_NET_MTU) break;
}
eos_net_send(EOS_NET_MTYPE_CELL, buf, i, 0);
eos_uart_rxwm_set(0);