MODSERIAL with support for more devices

Fork of MODSERIAL by Erik -

Revision:
22:c11ea36f17f9
Parent:
8:775f860e94d3
Child:
27:9c93ce7cb9d8
diff -r af2af4c61c2f -r c11ea36f17f9 GETC.cpp
--- a/GETC.cpp	Tue May 10 08:07:27 2011 +0000
+++ b/GETC.cpp	Thu Apr 19 20:47:46 2012 +0000
@@ -56,7 +56,9 @@
         _IER = ier;
     }
     
+    __disable_irq();
     buffer_count[RxIrq]--;   
+    __enable_irq();
     return c;
 }