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:
Luiz Augusto von Dentz 2019-07-02 21:53:46 +03:00 committed by Anas Nashif
commit dbe80fd987

View file

@ -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;
}