mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-23 05:24:46 -07:00
Add Battery Reporting to FindMy
This commit is contained in:
@@ -13,6 +13,7 @@ typedef enum {
|
||||
FindMyTypeTile,
|
||||
} FindMyType;
|
||||
|
||||
|
||||
typedef struct {
|
||||
bool beacon_active;
|
||||
uint8_t broadcast_interval;
|
||||
@@ -24,6 +25,8 @@ typedef struct {
|
||||
|
||||
// Generated from the other state values
|
||||
GapExtraBeaconConfig config;
|
||||
|
||||
uint8_t battery_level;
|
||||
} FindMyState;
|
||||
|
||||
bool findmy_state_load(FindMyState* out_state);
|
||||
@@ -34,4 +37,6 @@ void findmy_state_sync_config(FindMyState* state);
|
||||
|
||||
void findmy_state_save(FindMyState* state);
|
||||
|
||||
void findmy_update_payload_battery(uint8_t* data, uint8_t battery_level, FindMyType type);
|
||||
|
||||
uint8_t findmy_state_data_size(FindMyType type);
|
||||
|
||||
Reference in New Issue
Block a user