Skip to content

Commit 9cae0a8

Browse files
committed
fw/apps/prf/recovery_first_use: do not change pairability on mobile event
A mobile event may not signify a BLE disconnection, so pairability, discoverability cannot be adjusted if disconnection doesn't happen first. A true disconnection will happen later if PPoGATT fails to keep connection alive, and so such settings change will be handled by then. Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
1 parent e302d17 commit 9cae0a8

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/fw/apps/prf_apps/recovery_first_use_app/recovery_first_use_app.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -399,9 +399,6 @@ static void prv_pebble_mobile_app_event_handler(PebbleEvent *event, void *contex
399399
}
400400

401401
const bool is_connected = event->bluetooth.comm_session_event.is_open;
402-
// When the Pebble app is connected, to being discoverable / pairable. We do this to avoid
403-
// stressing out the BT controller during the FW update with discoverability advertisements, etc.
404-
prv_allow_pairing(s_fu_app_data, !is_connected);
405402

406403
s_fu_app_data->is_pebble_mobile_app_connected = event->bluetooth.comm_session_event.is_open;
407404
if (is_connected) {

0 commit comments

Comments
 (0)