[EFM32] Fix serial_api bug selecting wrong peripheral for asynch IRQ handler.

pull/1428/head
Aksel Skauge Mellbye 2015-11-16 13:28:47 +01:00
parent c0253c1fa5
commit 13957043c7
1 changed files with 2 additions and 2 deletions

View File

@ -1693,14 +1693,14 @@ int serial_irq_handler_asynch(serial_t *obj)
}
}else{
if(obj->serial.periph.uart->IEN & USART_IEN_TXC){
USART_IntDisable(obj->serial.periph.leuart,USART_IEN_TXC);
USART_IntDisable(obj->serial.periph.uart,USART_IEN_TXC);
/* Clean up */
serial_dma_irq_fired[obj->serial.dmaOptionsTX.dmaChannel] = false;
serial_tx_abort_asynch(obj);
/* Notify CPP land of completion */
return SERIAL_EVENT_TX_COMPLETE & obj->serial.events;
}else{
USART_IntEnable(obj->serial.periph.leuart,USART_IEN_TXC);
USART_IntEnable(obj->serial.periph.uart,USART_IEN_TXC);
}
}
} else {