introduce a handleDataSentEvent which takes a count.

This commit is contained in:
Rohit Grover 2014-08-29 10:56:49 +01:00
parent 900ead3cc5
commit 10ad7e4f1a

View file

@ -299,9 +299,7 @@ void nRF51GattServer::hwCallback(ble_evt_t *p_ble_evt)
break;
case BLE_EVT_TX_COMPLETE: {
for (unsigned i = 0; i < p_ble_evt->evt.common_evt.params.tx_complete.count; i++) {
handleEvent(GattServerEvents::GATT_EVENT_DATA_SENT);
}
handleDataSentEvent(p_ble_evt->evt.common_evt.params.tx_complete.count);
return;
}