more config clean up

This commit is contained in:
hathach committed 2017-12-15 19:58:55 +07:00
1 parent 3f4d9a2159
commit bf3c11c723
3 files changed
+30 -12

No files matched your search

+2 -2
View File
@@ -160,10 +160,10 @@ void BLEGap::_eventHandler(ble_evt_t* evt)
(void) sd_ble_tx_packet_count_get(conn_handle, &txbuf_max);
peer->hvn_tx_sem = xSemaphoreCreateCounting(txbuf_max, txbuf_max);
#else
peer->hvn_tx_sem = xSemaphoreCreateCounting(CFG_GAP_HVN_TX_QUEUE_SIZE, CFG_GAP_HVN_TX_QUEUE_SIZE);
peer->hvn_tx_sem = xSemaphoreCreateCounting(Bluefruit.getHvnTxQueue(), Bluefruit.getHvnTxQueue());
#endif
peer->wrcmd_tx_sem = xSemaphoreCreateCounting(CFG_GAP_WRITECMD_TX_QUEUE_SIZE, CFG_GAP_WRITECMD_TX_QUEUE_SIZE);
peer->wrcmd_tx_sem = xSemaphoreCreateCounting(Bluefruit.getWriteCmdQueue(), Bluefruit.getWriteCmdQueue());
}
break;