From 97e0d9858231a01ea893b710521acbc0db7afd2b Mon Sep 17 00:00:00 2001 From: Sergi Hernandez Juan <shernand@iri.upc.edu> Date: Fri, 17 Jan 2020 18:44:45 +0100 Subject: [PATCH] Solved a bug: when the DMA transmission is done, the irq_sending flag should not be set. --- comm/src/comm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comm/src/comm.c b/comm/src/comm.c index ad60330..40b9362 100644 --- a/comm/src/comm.c +++ b/comm/src/comm.c @@ -272,7 +272,7 @@ comm_error comm_send_dma(TComm *dev,unsigned char *data,unsigned short int lengt void comm_do_dma_send(TComm *dev) { dev->dma_waiting_buffer_empty=0x01; - dev->irq_sending=0x01; + dev->irq_sending=0x00; dev->dma_sending=0x00; dev->enable_tx_irq(); } -- GitLab