mirror of https://github.com/ARMmbed/mbed-os.git
no need to check again
parent
f876179484
commit
019a32c75b
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue