From f4ef9e50fbb81db602d539bc88720894b87e9b86 Mon Sep 17 00:00:00 2001 From: Willy-JL <49810075+Willy-JL@users.noreply.github.com> Date: Fri, 8 Mar 2024 22:35:24 +0000 Subject: [PATCH] FindMy: Fix build --- applications/system/findmy/findmy_state.c | 8 ++++---- applications/system/findmy/findmy_state.h | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/applications/system/findmy/findmy_state.c b/applications/system/findmy/findmy_state.c index 69c90389e2..12e8cbed21 100644 --- a/applications/system/findmy/findmy_state.c +++ b/applications/system/findmy/findmy_state.c @@ -96,10 +96,10 @@ void findmy_state_apply(FindMyState* state) { } void findmy_state_sync_config(FindMyState* state) { - state.config.min_adv_interval_ms = state.broadcast_interval * 1000; // Converting s to ms - state.config.max_adv_interval_ms = (state.broadcast_interval * 1000) + 150; - state.config.adv_power_level = GapAdvPowerLevel_0dBm + state.transmit_power; - memcpy(state.config.address, state.mac, sizeof(state.config.address)); + state->config.min_adv_interval_ms = state->broadcast_interval * 1000; // Converting s to ms + state->config.max_adv_interval_ms = (state->broadcast_interval * 1000) + 150; + state->config.adv_power_level = GapAdvPowerLevel_0dBm + state->transmit_power; + memcpy(state->config.address, state->mac, sizeof(state->config.address)); } void findmy_state_save(FindMyState* state) { diff --git a/applications/system/findmy/findmy_state.h b/applications/system/findmy/findmy_state.h index 284f2dfbc1..d11313e588 100644 --- a/applications/system/findmy/findmy_state.h +++ b/applications/system/findmy/findmy_state.h @@ -23,4 +23,6 @@ bool findmy_state_load(FindMyState* out_state); void findmy_state_apply(FindMyState* state); +void findmy_state_sync_config(FindMyState* state); + void findmy_state_save(FindMyState* state);