Bug fix release
Fork of MODSERIAL by
Diff: ISR_RX.cpp
- Revision:
- 2:b936b4acbd92
- Parent:
- 0:eb2522b41db8
- Child:
- 4:28de979b77cf
diff -r b7e435fbfe8e -r b936b4acbd92 ISR_RX.cpp --- a/ISR_RX.cpp Sun Nov 21 02:15:07 2010 +0000 +++ b/ISR_RX.cpp Sun Nov 21 03:31:51 2010 +0000 @@ -28,7 +28,9 @@ void MODSERIAL::isr_rx(void) { - if (_base) { + if (! _base ) return; + + if ( dmaInUse[RxIrq] == NotInUse ) { while( MODSERIAL_RBR_HAS_DATA ) { rxc = (char)(_RBR & 0xFF); if ( MODSERIAL_RX_BUFFER_FULL ) {