mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-16 04:24:45 -07:00
FindMy: Refactors and improvements
- state handled reparately, decoupled from app - better apple/samsung/unknown parsing and handling - improve error handling - add url to manifest + up stack size just in case
This commit is contained in:
17
applications/system/findmy/findmy_state.h
Normal file
17
applications/system/findmy/findmy_state.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#pragma once
|
||||
|
||||
#include <extra_beacon.h>
|
||||
|
||||
typedef struct {
|
||||
uint8_t mac[EXTRA_BEACON_MAC_ADDR_SIZE];
|
||||
uint8_t data[EXTRA_BEACON_MAX_DATA_SIZE];
|
||||
GapExtraBeaconConfig config;
|
||||
|
||||
bool beacon_active;
|
||||
uint8_t broadcast_interval;
|
||||
uint8_t transmit_power;
|
||||
} FindMyState;
|
||||
|
||||
bool findmy_state_load(FindMyState* out_state);
|
||||
|
||||
void findmy_state_apply(FindMyState* state);
|
||||
Reference in New Issue
Block a user