High level Bluetooth Low Energy API and radio abstraction layer
Fork of BLE_API by
Diff: GapAdvertisingData.cpp
- Revision:
- 59:2c30cb482915
- Parent:
- 58:0642c323b751
- Child:
- 76:103fac6e36d1
diff -r 0642c323b751 -r 2c30cb482915 GapAdvertisingData.cpp --- a/GapAdvertisingData.cpp Thu May 29 14:57:15 2014 +0100 +++ b/GapAdvertisingData.cpp Thu May 29 16:21:46 2014 +0100 @@ -78,7 +78,7 @@ /* value is exclusive or not (flags, etc.) */ /* Make sure we don't exceed the 31 byte payload limit */ - if (_payloadLen + len + 2 >= GAP_ADVERTISING_DATA_MAX_PAYLOAD) { + if (_payloadLen + len + 2 > GAP_ADVERTISING_DATA_MAX_PAYLOAD) { return BLE_ERROR_BUFFER_OVERFLOW; }