bluetooth control motor

Dependents:   BLE_LED_IDB0XA1_demo MOTOR_BLE_V2 Motor_Ble_v1 Motor_Ble_v10223 ... more

Fork of X_NUCLEO_IDB0XA1 by ST

Branch:
e9fb3e390284c3f7ef8e1d21cc55deef7558ca3d
Revision:
264:1e754a01869e
Parent:
253:9665a6f8bbdb
Child:
273:00205952d841
diff -r f4d217cadbde -r 1e754a01869e source/platform/btle.cpp
--- a/source/platform/btle.cpp	Thu Sep 15 10:51:17 2016 +0100
+++ b/source/platform/btle.cpp	Thu Sep 15 10:51:26 2016 +0100
@@ -203,9 +203,7 @@
     /*ret = aci_gatt_update_char_value(service_handle, dev_name_char_handle, 0,
                             strlen(name), (tHalUint8 *)name);*/
 
-#ifdef AST_FOR_MBED_OS
-    minar::Scheduler::postCallback(btle_handler);
-#endif
+    signalEventsToProcess();
     return;
 }
 
@@ -218,15 +216,14 @@
     @returns
 */
 /**************************************************************************/
-#ifdef AST_FOR_MBED_OS
 int btle_handler_pending = 0;
 
 void btle_handler(void)
 {
     btle_handler_pending = 0;
+	BlueNRGGap::getInstance().Process();    
     HCI_Process();
 }
-#endif
 
 /* set BLE Version string */
 void setVersionString(uint8_t hwVersion, uint16_t fwVersion)
@@ -643,4 +640,4 @@
 
 #ifdef __cplusplus
 }
-#endif
+#endif
\ No newline at end of file