Small fix for Mix delays when the switch is toggled before the delay is expired

Test code for Franck (have a look to open9x.cpp, in the first lines)
This commit is contained in:
bsongis
2012-08-13 07:49:56 +00:00
parent 0f5e855849
commit 8c5dd2b0d9
3 changed files with 16 additions and 6 deletions
+1 -1
View File
@@ -1141,7 +1141,7 @@ uint32_t txPdcPending()
pUsart->US_PTCR = US_PTCR_TXTDIS ; // Freeze DMA
x = pUsart->US_TNCR ; // Total
x += pUsart->US_TCR ; // Still to send
pUsart->US_PTCR = US_PTCR_TXTEN ; // DMA active again
pUsart->US_PTCR = US_PTCR_TXTEN ; // DMA active again
__enable_irq() ;
return x ;