BLE: Fix comparison expression between an integer and a SafeEnum

pull/9393/head
Vincent Coubard 2019-01-16 11:25:22 +00:00
parent 0b9587fe26
commit f8ef143ed7
1 changed files with 1 additions and 1 deletions

View File

@ -331,7 +331,7 @@ uint8_t *AdvertisingDataBuilder::findField(adv_data_type_t type)
for (uint8_t idx = 0; idx < _payload_length;) {
uint8_t fieldType = _buffer[idx + FIELD_TYPE_INDEX];
if (fieldType == type) {
if (fieldType == type.value()) {
return _buffer.data() + idx;
}