no need to check again

pull/13449/head
Paul Szczeanek 2020-08-19 10:41:05 +01:00
parent f876179484
commit 019a32c75b
1 changed files with 1 additions and 3 deletions

View File

@ -994,9 +994,7 @@ uint8_t GattServer::atts_write_cb(
/* we don't write anything during the prepare phase */ /* we don't write anything during the prepare phase */
bool write_happened = (operation != ATT_PDU_PREP_WRITE_REQ); bool write_happened = (operation != ATT_PDU_PREP_WRITE_REQ);
if (len > pAttr->maxLen) { MBED_ASSERT(len + offset <= pAttr->maxLen);
return ATT_ERR_LENGTH;
}
if (write_happened) { if (write_happened) {
WsfTaskLock(); WsfTaskLock();