Skip to content

Commit 911720e

Browse files
authored
Merge pull request #9143 from desmond-blue/fix_ble_longwrite
Fix BLE long write execution failure
2 parents 85c2fc7 + 30ca813 commit 911720e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NORDIC_SOFTDEVICE/TARGET_NRF51/source/nRF5xGattServer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,7 @@ void nRF5xGattServer::hwCallback(const ble_evt_t *p_ble_evt)
664664
* set to AUTH_CALLBACK_REPLY_SUCCESS if the client
665665
* request is to proceed. */
666666
};
667+
characteristicIndex = resolveValueHandleToCharIndex(req->attr_handle);
667668
uint16_t write_authorization = p_characteristics[characteristicIndex]->authorizeWrite(&cbParams);
668669

669670
// the user code didn't provide the write authorization,

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NORDIC_SOFTDEVICE/TARGET_NRF52/source/nRF5xGattServer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -670,6 +670,7 @@ void nRF5xGattServer::hwCallback(const ble_evt_t *p_ble_evt)
670670
* set to AUTH_CALLBACK_REPLY_SUCCESS if the client
671671
* request is to proceed. */
672672
};
673+
characteristicIndex = resolveValueHandleToCharIndex(req->attr_handle);
673674
uint16_t write_authorization = p_characteristics[characteristicIndex]->authorizeWrite(&cbParams);
674675

675676
// the user code didn't provide the write authorization,

0 commit comments

Comments
 (0)