C027 updated to work with latest mBed libraries

Dependents:   Cellular_HelloMQTT UBLOXModemDriver UBLOXMQTTDriver

Fork of C027_Support by u-blox

Revision:
139:380bee4079a3
Parent:
137:6a7a5c4f35f6
--- a/MDM.cpp	Thu Feb 25 13:22:34 2016 +0000
+++ b/MDM.cpp	Tue Jan 24 17:05:14 2017 +0000
@@ -382,12 +382,11 @@
         DigitalOut pin(pn, 1);
         while (i--) {
             // SARA-U2/LISA-U2 50..80us
-            pin = 0; ::wait_us(50);
-            pin = 1; ::wait_ms(10); 
-            
             // SARA-G35 >5ms, LISA-C2 > 150ms, LEON-G2 >5ms
-            pin = 0; ::wait_ms(150);
-            pin = 1; ::wait_ms(100);
+            pin = 0; 
+            wait_ms(150);
+            pin = 1; 
+            wait_ms(100);
             
             // purge any messages 
             purge();
@@ -2042,8 +2041,11 @@
     _debugLevel = (level < -1) ? -1 : 
                   (level >  3) ?  3 : 
                                  level;
+     return _debugLevel == level;
+#else
+    return 0;
 #endif
-    return _debugLevel == level;
+    
 }
 
 void MDMParser::dumpDevStatus(MDMParser::DevStatus* status,