more central support

- rename BLE_GAP_MAX_CONN to BLE_MAX_CONN
- change rx callback of BLEClientUart
- better support multiple connection
This commit is contained in:
hathach committed 2017-07-10 23:39:18 +07:00
1 parent d4e3244341
commit 9a74a6f300
9 files changed
+67 -73

No files matched your search

+1 -1
View File
@@ -64,7 +64,7 @@ bool BLEGap::getTxPacket(void)
bool BLEGap::getTxPacket(uint16_t conn_handle)
{
VERIFY( (conn_handle < BLE_GAP_MAX_CONN) && (_peers[conn_handle].txpacket_sem != NULL) );
VERIFY( (conn_handle < BLE_MAX_CONN) && (_peers[conn_handle].txpacket_sem != NULL) );
return xSemaphoreTake(_peers[conn_handle].txpacket_sem, ms2tick(BLE_GENERIC_TIMEOUT));
}