summaryrefslogtreecommitdiff
path: root/gm_platform/fw/serial.c
diff options
context:
space:
mode:
authorjaseg <git@jaseg.net>2020-01-30 16:45:11 +0100
committerjaseg <git@jaseg.net>2020-01-30 16:45:11 +0100
commitda3a2835935173173da8843ecc4800961856ca44 (patch)
tree130392f434145c3a757e7d61bfa9136c1aa6bd80 /gm_platform/fw/serial.c
parent3f6848c4c68c137d8e3202af623d676a66b4bc53 (diff)
downloadmaster-thesis-da3a2835935173173da8843ecc4800961856ca44.tar.gz
master-thesis-da3a2835935173173da8843ecc4800961856ca44.tar.bz2
master-thesis-da3a2835935173173da8843ecc4800961856ca44.zip
Fixup protocol reset problem
Diffstat (limited to 'gm_platform/fw/serial.c')
-rw-r--r--gm_platform/fw/serial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gm_platform/fw/serial.c b/gm_platform/fw/serial.c
index 25b86fc..2c80674 100644
--- a/gm_platform/fw/serial.c
+++ b/gm_platform/fw/serial.c
@@ -50,7 +50,7 @@ void usart_dma_reset() {
usart_tx_buf.wr_idx = 0;
usart_tx_buf.xfr_next = 0;
usart_tx_buf.wraparound = false;
- usart_tx_buf.ack = false;
+ usart_tx_buf.ack = true;
for (size_t i=0; i<ARRAY_LEN(usart_tx_buf.packet_end); i++)
usart_tx_buf.packet_end[i] = -1;