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

Revision:
133:1bb8df697f7f
Parent:
132:51056160fa4a
Child:
135:f0b6cf8ac4fc
--- a/source/bluenrg-hci/hci/hci.c	Wed Oct 07 08:39:04 2015 +0200
+++ b/source/bluenrg-hci/hci/hci.c	Wed Oct 07 09:08:22 2015 +0200
@@ -22,6 +22,7 @@
 #include "hal.h"
 #include "hci_const.h"
 #include "gp_timer.h"
+#include "debug.h"
 
 #include "stm32_bluenrg_ble.h"
 
@@ -156,11 +157,17 @@
       // HCI Read Packet Pool is empty, wait for a free packet.
       readPacketListFull = TRUE;
       Clear_SPI_EXTI_Flag();
-      return;
+      goto get_out;
     }
     
     Clear_SPI_EXTI_Flag();
   }
+
+ get_out:
+#ifdef YOTTA_CFG
+  Call_BTLE_Handler();
+#endif
+  return;
 }
 
 void hci_write(const void* data1, const void* data2, uint8_t n_bytes1, uint8_t n_bytes2){