mirror of https://github.com/ARMmbed/mbed-os.git
Fix BLE long write execution failure
parent
06748af2f8
commit
30ca813f07
|
@ -664,6 +664,7 @@ void nRF5xGattServer::hwCallback(const ble_evt_t *p_ble_evt)
|
|||
* set to AUTH_CALLBACK_REPLY_SUCCESS if the client
|
||||
* request is to proceed. */
|
||||
};
|
||||
characteristicIndex = resolveValueHandleToCharIndex(req->attr_handle);
|
||||
uint16_t write_authorization = p_characteristics[characteristicIndex]->authorizeWrite(&cbParams);
|
||||
|
||||
// the user code didn't provide the write authorization,
|
||||
|
|
|
@ -670,6 +670,7 @@ void nRF5xGattServer::hwCallback(const ble_evt_t *p_ble_evt)
|
|||
* set to AUTH_CALLBACK_REPLY_SUCCESS if the client
|
||||
* request is to proceed. */
|
||||
};
|
||||
characteristicIndex = resolveValueHandleToCharIndex(req->attr_handle);
|
||||
uint16_t write_authorization = p_characteristics[characteristicIndex]->authorizeWrite(&cbParams);
|
||||
|
||||
// the user code didn't provide the write authorization,
|
||||
|
|
Loading…
Reference in New Issue