X_NUCLEO_IDB0XA1

Dependents:   BLE_HeartRate_IDB0XA1

Fork of X_NUCLEO_IDB0XA1 by ST

Revision:
162:667f97a4db7f
Parent:
140:0cd922dca83c
Child:
163:4c008b1089e9
--- a/source/bluenrg-hci/hci/hci.c	Thu Oct 29 15:24:04 2015 +0100
+++ b/source/bluenrg-hci/hci/hci.c	Fri Oct 30 09:08:25 2015 +0100
@@ -32,7 +32,7 @@
 
 #define HCI_LOG_ON 0
 
-#define HCI_READ_PACKET_NUM_MAX 		 (5)
+#define HCI_READ_PACKET_NUM_MAX 		 (15)
 
 #define MIN(a,b)            ((a) < (b) )? (a) : (b)
 #define MAX(a,b)            ((a) > (b) )? (a) : (b)
@@ -156,6 +156,9 @@
     }
     else{
       // HCI Read Packet Pool is empty, wait for a free packet.
+#ifdef AST_FOR_MBED_OS
+      Call_BTLE_Handler();
+#endif
       readPacketListFull = TRUE;
       Clear_SPI_EXTI_Flag();
       return;