Skip to content
Snippets Groups Projects
Commit 97e0d985 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Solved a bug: when the DMA transmission is done, the irq_sending flag should not be set.

parent 5912a0a0
No related branches found
No related tags found
No related merge requests found
...@@ -272,7 +272,7 @@ comm_error comm_send_dma(TComm *dev,unsigned char *data,unsigned short int lengt ...@@ -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) void comm_do_dma_send(TComm *dev)
{ {
dev->dma_waiting_buffer_empty=0x01; dev->dma_waiting_buffer_empty=0x01;
dev->irq_sending=0x01; dev->irq_sending=0x00;
dev->dma_sending=0x00; dev->dma_sending=0x00;
dev->enable_tx_irq(); dev->enable_tx_irq();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment