1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-12-01 17:57:53 +03:00

Fixed USARTClass

This commit is contained in:
Cristian Maglie
2011-12-05 14:28:51 +01:00
parent 5a238022a3
commit e484f0712a
2 changed files with 23 additions and 3 deletions

View File

@@ -123,7 +123,7 @@ void USARTClass::IrqHandler( void )
uint32_t status = _pUsart->US_CSR;
// Did we receive data ?
if ((status & US_CSR_ENDRX) == US_CSR_ENDRX)
if ((status & US_CSR_RXRDY) == US_CSR_RXRDY)
_rx_buffer->store_char( _pUsart->US_RHR ) ;
// Acknowledge errors