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 5baa3fc commit 3759bcdCopy full SHA for 3759bcd
libraries/CurieBle/src/BleCharacteristic.cpp
@@ -165,7 +165,7 @@ BleCharacteristic::_setValue(void)
165
if (!_initialised)
166
return BLE_STATUS_WRONG_STATE;
167
168
- if ((_data_len > BLE_MAX_ATTR_DATA_LEN) && (_data_len > _char_data.max_len))
+ if ((_data_len > BLE_MAX_ATTR_DATA_LEN) || (_data_len > _char_data.max_len))
169
return BLE_STATUS_NOT_ALLOWED;
170
171
status = ble_client_gatts_set_attribute_value(_handles.value_handle,
0 commit comments