version_2.0

Dependents:   cc3000_ping_demo_try_2

Fork of cc3000_hostdriver_mbedsocket by Martin Kojtal

Revision:
44:960b73df5981
Parent:
42:bd2c631a031a
Child:
45:50ab13d8f2dc
--- a/cc3000_event.cpp	Sat Oct 12 23:28:22 2013 +0000
+++ b/cc3000_event.cpp	Sun Oct 13 11:46:21 2013 +0200
@@ -44,7 +44,7 @@
 
 namespace mbed_cc3000 {
 
-#ifdef CC3000_DEBUG_HCI_RX
+#if (CC3000_DEBUG_HCI_RX == 1)
 const char *HCI_EVENT_STR[] =
 {
     "Socket",
@@ -178,7 +178,7 @@
 
 static void hci_event_debug_print(uint16_t hciEventNo)
 {
-#ifdef CC3000_DEBUG_HCI_RX
+#if (CC3000_DEBUG_HCI_RX == 1)
     if ((hciEventNo > HCI_CMND_SOCKET_BASE) && ( hciEventNo <= HCI_CMND_MDNS_ADVERTISE))
     {
         DBG_HCI("Event Received : 0x%04X - %s", hciEventNo, HCI_EVENT_STR[hciEventNo-HCI_CMND_SOCKET]);
@@ -206,9 +206,9 @@
     uint32_t return_value;
     uint8_t * RecvParams;
     uint8_t *RetParams;
-        
+
     while (1)
-    {        
+    {
         if (_simple_link.get_data_received_flag() != 0)
         {
             received_data = _simple_link.get_received_data();
@@ -397,12 +397,12 @@
                         //Read SSID
                         STREAM_TO_STREAM(RecvParams,RetParams,NETAPP_IPCONFIG_SSID_LENGTH);
                         break;
-                        
+
                     default :
                         DBG_HCI("UNKNOWN Event Received : 0x%04X ", received_op_code);
                         break;
                     }
- 
+
                 }
                 if (received_op_code == _simple_link.get_op_code())
                 {