summaryrefslogtreecommitdiff
path: root/fw/fe310/test
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2020-08-05 21:31:49 +0200
committerUros Majstorovic <majstor@majstor.org>2020-08-05 21:31:49 +0200
commita35636fc4a55e6b0cfbb5772f7274ee749059836 (patch)
tree18e0d3a42ec63255586eedfd4d253f92d54ae3ae /fw/fe310/test
parent3eab89296f3cfec1e8164ac0dbf80cdeda34e27c (diff)
fixed modem test example
Diffstat (limited to 'fw/fe310/test')
-rwxr-xr-xfw/fe310/test/modembin134292 -> 0 bytes
-rw-r--r--fw/fe310/test/modem.c5
2 files changed, 4 insertions, 1 deletions
diff --git a/fw/fe310/test/modem b/fw/fe310/test/modem
deleted file mode 100755
index e7a3c4a..0000000
--- a/fw/fe310/test/modem
+++ /dev/null
Binary files differ
diff --git a/fw/fe310/test/modem.c b/fw/fe310/test/modem.c
index de6394d..e89112b 100644
--- a/fw/fe310/test/modem.c
+++ b/fw/fe310/test/modem.c
@@ -95,10 +95,13 @@ static void handle_cell_msg(unsigned char _type, unsigned char *buffer, uint16_t
eos_net_send(EOS_NET_MTYPE_CELL, buffer, 1, 0);
eos_uart_rxwm_set(0);
printf("\nREADY.\n");
+ eos_spi_dev_start(EOS_DEV_DISP);
+ eve_text_puts(&box, "READY.\n");
+ eos_spi_dev_stop();
break;
case EOS_CELL_MTYPE_UART_DATA:
- eos_spi_dev_start(EOS_DEV_DISP);
+ eos_spi_dev_start(EOS_DEV_DISP);
for (i=1; i<len; i++) {
if (buffer[i] != '\r') eve_text_putc(&box, buffer[i]);
}