WncControllerK64F

Dependencies:   WncController

Fork of WncControllerK64F by Fred Kellerman

Revision:
22:9b9cb0d95f51
Parent:
20:fcc6b61a5610
Child:
23:43a36c66c574
--- a/WncControllerK64F.cpp	Mon Oct 10 17:02:35 2016 +0000
+++ b/WncControllerK64F.cpp	Wed Nov 16 18:18:56 2016 +0000
@@ -146,13 +146,15 @@
     // Toggle wakeup to prevent future dropped 'A' of "AT", this was
     //  suggested by ATT.
     if (res == true) {
-        m_pDbgUart->puts("\r\nToggling Wakeup...\r\n");
+        if (m_pDbgUart != NULL)
+            m_pDbgUart->puts("\r\nToggling Wakeup...\r\n");
         waitMs(20);
         *m_gpioPinList.mdm_wakeup_in = 0;
         waitMs(2000);
         *m_gpioPinList.mdm_wakeup_in = 1;
         waitMs(20);
-        m_pDbgUart->puts("Toggling complete.\r\n");
+        if (m_pDbgUart != NULL)
+            m_pDbgUart->puts("Toggling complete.\r\n");
     }
 
     return (res);