introduce a handleDataSentEvent which takes a count.

master
Rohit Grover 2014-08-29 10:56:49 +01:00
parent 900ead3cc5
commit 10ad7e4f1a
1 changed files with 1 additions and 3 deletions

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;
}