mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-16 04:24:45 -07:00
Add Tile Support, Save Tag Type, Dynamic Data Length
This commit is contained in:
@@ -7,6 +7,12 @@
|
||||
#define FINDMY_STATE_DIR EXT_PATH("apps_data/findmy")
|
||||
#define FINDMY_STATE_PATH FINDMY_STATE_DIR "/findmy_state.txt"
|
||||
|
||||
typedef enum {
|
||||
FindMyTypeApple,
|
||||
FindMyTypeSamsung,
|
||||
FindMyTypeTile,
|
||||
} FindMyType;
|
||||
|
||||
typedef struct {
|
||||
bool beacon_active;
|
||||
uint8_t broadcast_interval;
|
||||
@@ -14,6 +20,7 @@ typedef struct {
|
||||
|
||||
uint8_t mac[EXTRA_BEACON_MAC_ADDR_SIZE];
|
||||
uint8_t data[EXTRA_BEACON_MAX_DATA_SIZE];
|
||||
FindMyType tag_type;
|
||||
|
||||
// Generated from the other state values
|
||||
GapExtraBeaconConfig config;
|
||||
@@ -26,3 +33,5 @@ void findmy_state_apply(FindMyState* state);
|
||||
void findmy_state_sync_config(FindMyState* state);
|
||||
|
||||
void findmy_state_save(FindMyState* state);
|
||||
|
||||
uint8_t findmy_state_data_size(FindMyType type);
|
||||
|
||||
Reference in New Issue
Block a user