Bluetooth: GATT: Fix registering on static service area
When registering a new service it has to account the area used by static services. Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
parent
d8c5c9dcf1
commit
dbe80fd987
1 changed files with 1 additions and 1 deletions
|
@ -566,7 +566,7 @@ static int gatt_register(struct bt_gatt_service *svc)
|
|||
u16_t count = svc->attr_count;
|
||||
|
||||
if (sys_slist_is_empty(&db)) {
|
||||
handle = 0;
|
||||
handle = last_static_handle;
|
||||
last_handle = 0;
|
||||
goto populate;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue