We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b728776 commit 9f44896Copy full SHA for 9f44896
esp32/mods/modbt.c
@@ -428,6 +428,10 @@ void bt_resume(bool reconnect)
428
// As modbt_connect appends the new connection to the original list, it needs to be removed because it is not needed
429
mp_obj_list_remove((void *)&MP_STATE_PORT(btc_conn_list), new_connection_obj);
430
}
431
+ else {
432
+ // Remove the old connection from the original list because connection could not be established with it
433
+ mp_obj_list_remove((void *)&MP_STATE_PORT(btc_conn_list), connection_obj);
434
+ }
435
436
437
/* See if there was an advertisement active before Sleep */
0 commit comments