From 868a04f2f37e097ecaa35b0852c380aaa9f88bf7 Mon Sep 17 00:00:00 2001 From: schneider <schneider@blinkenlichts.net> Date: Sat, 16 Jan 2021 18:49:09 +0100 Subject: [PATCH] feat(mp-ble): Drop connection when starting adv --- pycardium/modules/modbluetooth_card10.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pycardium/modules/modbluetooth_card10.c b/pycardium/modules/modbluetooth_card10.c index b86bcf4c9..c2dc063e0 100644 --- a/pycardium/modules/modbluetooth_card10.c +++ b/pycardium/modules/modbluetooth_card10.c @@ -277,7 +277,10 @@ int mp_bluetooth_gap_advertise_start( const uint8_t *sr_data, size_t sr_data_len ) { - raise(); + // Temporarily going to scanner drops the connection + // TODO: modify the advertising data + epic_ble_set_mode(false, true); + epic_ble_set_mode(false, false); return 0; } -- GitLab