From 0b78bce1686a6e04bce5fbcc20f91cc6f0a83dc6 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Thu, 28 May 2020 18:18:35 +0200 Subject: [PATCH] Serial interrupt --- flash | 2 +- hardware/Serial.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flash b/flash index dbd6704..d3df6db 100755 --- a/flash +++ b/flash @@ -1,2 +1,2 @@ #!/bin/bash -avrdude -p $2 -c arduino -P /dev/tty$1 -b 115200 -F -U flash:w:images/MicroAPRS.hex +avrdude -p $2 -c arduino -P /dev/tty$1 -b 115200 -F -U flash:w:images/OpenModem.hex diff --git a/hardware/Serial.c b/hardware/Serial.c index c2240f3..b0291d3 100755 --- a/hardware/Serial.c +++ b/hardware/Serial.c @@ -84,7 +84,7 @@ ISR(USART0_RX_vect) { char c = uart0_getchar_nowait(); fifo_push(&uart0FIFO, c); } else { - uart1_getchar_nowait(); + uart0_getchar_nowait(); } } }