Skip to content

Commit

Permalink
Bluetooth: GATT: Fix registering on static service area
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vudentz authored and nashif committed Jul 2, 2019
1 parent d8c5c9d commit dbe80fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subsys/bluetooth/host/gatt.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit dbe80fd

Please sign in to comment.