Commented out the body of bool MODSERIAL::claim (FILE *stream) since it causes problems with the latest mbed library

Dependents:   ATT_Cellular_IOT_Button Avnet_ATT_Cellular_Pubnub Hiking_Pal Avnet_ATT_Cellular_IOT ... more

Fork of MODSERIAL by Erik -

Revision:
8:775f860e94d3
Parent:
4:28de979b77cf
Child:
12:8c7394e2ae7f
--- a/ISR_RX.cpp	Mon Nov 22 09:19:50 2010 +0000
+++ b/ISR_RX.cpp	Mon Nov 22 09:58:34 2010 +0000
@@ -28,7 +28,10 @@
 void 
 MODSERIAL::isr_rx(void)
 {
-    if (! _base ) return;
+    if (! _base || buffer_size[RxIrq] == 0 || buffer[RxIrq] == (char *)NULL) {
+        _isr[RxIrq].call(); 
+        return;
+    } 
     
     while( MODSERIAL_RBR_HAS_DATA ) {
         rxc = (char)(_RBR & 0xFF);