rename WriteEvent as WriteCBParams

This commit is contained in:
Rohit Grover 2014-08-28 11:46:37 +01:00
parent a601082563
commit 2b9fee3a56

View file

@ -315,13 +315,13 @@ void nRF51GattServer::hwCallback(ble_evt_t *p_ble_evt)
if (nrfCharacteristicHandles[i].value_handle == handle_value) {
switch (eventType) {
case GattServerEvents::GATT_EVENT_DATA_WRITTEN: {
GattCharacteristicWriteEvent eventData = {
.op = static_cast<GattCharacteristicWriteEvent::Type>(gattsEventP->params.write.op),
GattCharacteristicWriteCBParams cbParams = {
.op = static_cast<GattCharacteristicWriteCBParams::Type>(gattsEventP->params.write.op),
.offset = gattsEventP->params.write.offset,
.len = gattsEventP->params.write.len,
.data = gattsEventP->params.write.data
};
handleDataWrittenEvent(i, &eventData);
handleDataWrittenEvent(i, &cbParams);
break;
}
default: