Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FreePilot PinDetect mbed-src
Fork of FreePilot_V2-2 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 ) {
