Devchannel Team / X_NUCLEO_IDB0XA1

Dependents:   Hello_BLE F446RE-BLE

Fork of X_NUCLEO_IDB0XA1 by ST

Revision:
30:555e6697b368
Parent:
29:1870b03aa25b
Child:
31:46dff2d2dd4f
--- a/btle/src/btle.cpp	Thu Aug 21 07:42:06 2014 +0000
+++ b/btle/src/btle.cpp	Thu Aug 21 10:03:17 2014 +0000
@@ -188,8 +188,7 @@
                             evt_le_connection_complete *cc = (evt_le_connection_complete *)evt->data;
                             
                             BlueNRGGap::getInstance().setConnectionHandle(cc->handle);
-                            BlueNRGGap::getInstance().handleEvent(GapEvents::GAP_EVENT_CONNECTED);
-                            
+                            BlueNRGGap::getInstance().handleEvent(GapEvents::GAP_EVENT_CONNECTED);                            
                         }
                         break;
                     }
@@ -225,13 +224,11 @@
                                   | GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_INDICATE))) {
                                   
                                    //Now Check if data written in Enable or Disable
-                                   if((uint16_t)evt->att_data[0]==1)
-                                   {
+                                   if((uint16_t)evt->att_data[0]==1) {
                                     //DEBUG("Notify ENABLED\n\r"); 
                                     BlueNRGGattServer::getInstance().handleEvent(GattServerEvents::GATT_EVENT_UPDATES_ENABLED, evt->attr_handle);
                                    } 
-                                   else
-                                   {
+                                   else {
                                     //DEBUG("Notify DISABLED\n\r"); 
                                     BlueNRGGattServer::getInstance().handleEvent(GattServerEvents::GATT_EVENT_UPDATES_DISABLED, evt->attr_handle);
                                     }
@@ -247,9 +244,7 @@
                                     if ((p_char->getValuePtr() != NULL) && (p_char->getInitialLength() > 0)) {
                                         BlueNRGGattServer::getInstance().updateValue(p_char->getHandle(), p_char->getValuePtr(), p_char->getInitialLength(), false /* localOnly */);
                                     }
-                          }
-                          
-                          //Attribute_Modified_CB(evt->attr_handle, evt->data_length, evt->att_data);                    
+                          }                   
                         }
                         break;