private fork

Fork of GSwifiInterface by gs fan

Revision:
15:086d1a33a197
Parent:
12:057089026a20
Child:
16:105b56570533
--- a/GSwifi/GSwifi_hal.cpp	Fri Jan 10 14:23:33 2014 +0000
+++ b/GSwifi/GSwifi_hal.cpp	Thu Jan 30 15:10:14 2014 +0000
@@ -200,14 +200,18 @@
     }
 #elif defined(TARGET_LPC4088)
     _uart = (LPC_UART_TypeDef*)LPC_UART2;
-    if (cts != NC && rts != NC) {
+    if (cts != NC) {
         _cts = new DigitalIn(cts);
+    }
+    if (rts != NC) {
         _rts = new DigitalOut(rts);
         _flow = 2;
     }
 #else
-    if (cts != NC && rts != NC) {
+    if (cts != NC) {
         _cts = new DigitalIn(cts);
+    }
+    if (rts != NC) {
         _rts = new DigitalOut(rts);
         _flow = 2;
     }