mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-06 03:40:16 +00:00
att_db: use NULL
This commit is contained in:
parent
6643d79baa
commit
34464d0c4e
@ -205,10 +205,10 @@ const uint8_t * gatt_server_get_const_value_for_handle(uint16_t attribute_handle
|
|||||||
att_iterator_t it;
|
att_iterator_t it;
|
||||||
bool ok = att_find_handle(&it, attribute_handle);
|
bool ok = att_find_handle(&it, attribute_handle);
|
||||||
if (!ok){
|
if (!ok){
|
||||||
return 0u;
|
return NULL;
|
||||||
}
|
}
|
||||||
if ((it.flags & (uint16_t)ATT_PROPERTY_DYNAMIC) != 0u){
|
if ((it.flags & (uint16_t)ATT_PROPERTY_DYNAMIC) != 0u){
|
||||||
return 0u;
|
return NULL;
|
||||||
}
|
}
|
||||||
*out_value_len = it.value_len;
|
*out_value_len = it.value_len;
|
||||||
return it.value;
|
return it.value;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user