Skip to content

Commit 65a04ed

Browse files
committed
Deinit sm and l2cap when restarting bt standalone temp sensor
Without this, you get an error when attempting to reconnect after a restart
1 parent 617fa6c commit 65a04ed

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pico_w/bt/standalone/server/server.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ int main() {
190190
async_context_wait_for_work_until(cyw43_arch_async_context(), at_the_end_of_time);
191191
}
192192

193+
sm_deinit();
194+
l2cap_deinit();
195+
193196
cyw43_arch_deinit();
194197

195198
printf("Press the \"S\" key to Start bluetooth\n");

0 commit comments

Comments
 (0)