Skip to content

Commit

Permalink
FindMy: Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Willy-JL committed Mar 8, 2024
1 parent 61b35e0 commit f4ef9e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions applications/system/findmy/findmy_state.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 2 additions & 0 deletions applications/system/findmy/findmy_state.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit f4ef9e5

Please sign in to comment.