Skip to content

Commit 1b78b46

Browse files
must allow writes smaller than max attribute length
1 parent 83fa121 commit 1b78b46

File tree

1 file changed

+1
-1
lines changed
  • connectivity/FEATURE_BLE/libraries/TARGET_CORDIO/stack/ble-host/sources/stack/att

1 file changed

+1
-1
lines changed

connectivity/FEATURE_BLE/libraries/TARGET_CORDIO/stack/ble-host/sources/stack/att/atts_write.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ void attsProcPrepWriteReq(attsCcb_t *pCcb, uint16_t len, uint8_t *pPacket)
260260
}
261261
/* verify write length, fixed length */
262262
else if (((pAttr->settings & ATTS_SET_VARIABLE_LEN) == 0) &&
263-
(writeLen != pAttr->maxLen))
263+
(writeLen > pAttr->maxLen))
264264
{
265265
err = ATT_ERR_LENGTH;
266266
}

0 commit comments

Comments
 (0)