We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f876179 commit 019a32cCopy full SHA for 019a32c
connectivity/FEATURE_BLE/libraries/ble-api-implementation/source/GattServerImpl.cpp
@@ -994,9 +994,7 @@ uint8_t GattServer::atts_write_cb(
994
/* we don't write anything during the prepare phase */
995
bool write_happened = (operation != ATT_PDU_PREP_WRITE_REQ);
996
997
- if (len > pAttr->maxLen) {
998
- return ATT_ERR_LENGTH;
999
- }
+ MBED_ASSERT(len + offset <= pAttr->maxLen);
1000
1001
if (write_happened) {
1002
WsfTaskLock();
0 commit comments