Skip to content

Commit f8ef143

Browse files
committed
BLE: Fix comparison expression between an integer and a SafeEnum
1 parent 0b9587f commit f8ef143

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/FEATURE_BLE/source/gap/AdvertisingDataBuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ uint8_t *AdvertisingDataBuilder::findField(adv_data_type_t type)
331331
for (uint8_t idx = 0; idx < _payload_length;) {
332332
uint8_t fieldType = _buffer[idx + FIELD_TYPE_INDEX];
333333

334-
if (fieldType == type) {
334+
if (fieldType == type.value()) {
335335
return _buffer.data() + idx;
336336
}
337337

0 commit comments

Comments
 (0)