From c1cdba49d635ece701d764c6a5da0fb7775dfa3b Mon Sep 17 00:00:00 2001 From: Willy-JL <49810075+Willy-JL@users.noreply.github.com> Date: Fri, 22 Mar 2024 03:30:23 +0000 Subject: [PATCH] Fix FindMy crash on boot when core2 is broken --- applications/system/findmy/findmy_startup.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/applications/system/findmy/findmy_startup.c b/applications/system/findmy/findmy_startup.c index c24eaa7ce..0bbc2a832 100644 --- a/applications/system/findmy/findmy_startup.c +++ b/applications/system/findmy/findmy_startup.c @@ -1,9 +1,15 @@ #include "findmy_state.h" #include +#include void findmy_startup() { if(!furi_hal_is_normal_boot()) return; + // Wait for BT init and check core2 + furi_record_open(RECORD_BT); + furi_record_close(RECORD_BT); + if(!furi_hal_bt_is_gatt_gap_supported()) return; + FindMyState state; if(findmy_state_load(&state)) { findmy_state_apply(&state);