mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-13 15:28:36 -07:00
Make all service memory structures OFW comaptible
This commit is contained in:
@@ -38,7 +38,6 @@ typedef struct {
|
||||
bool gauge_is_ok;
|
||||
bool is_charging;
|
||||
bool is_shutdown_requested;
|
||||
bool is_charge_capped;
|
||||
|
||||
float current_charger;
|
||||
float current_gauge;
|
||||
@@ -56,6 +55,8 @@ typedef struct {
|
||||
|
||||
uint8_t charge;
|
||||
uint8_t health;
|
||||
|
||||
bool is_charge_capped;
|
||||
} PowerInfo;
|
||||
|
||||
/** Power off device
|
||||
|
||||
@@ -32,11 +32,6 @@ struct Power {
|
||||
Gui* gui;
|
||||
NotificationApp* notification;
|
||||
FuriPubSub* event_pubsub;
|
||||
FuriPubSub* settings_events;
|
||||
FuriPubSub* input_events_pubsub;
|
||||
FuriPubSubSubscription* input_events_subscription;
|
||||
FuriPubSubSubscription* app_start_stop_subscription;
|
||||
FuriPubSubSubscription* settings_events_subscription;
|
||||
PowerEvent event;
|
||||
|
||||
PowerState state;
|
||||
@@ -47,10 +42,16 @@ struct Power {
|
||||
uint8_t battery_level;
|
||||
uint8_t power_off_timeout;
|
||||
|
||||
FuriMutex* api_mtx;
|
||||
|
||||
FuriPubSub* settings_events;
|
||||
FuriPubSub* input_events_pubsub;
|
||||
FuriPubSubSubscription* input_events_subscription;
|
||||
FuriPubSubSubscription* app_start_stop_subscription;
|
||||
FuriPubSubSubscription* settings_events_subscription;
|
||||
uint32_t shutdown_idle_delay_ms;
|
||||
FuriTimer* auto_shutdown_timer;
|
||||
Loader* loader;
|
||||
FuriMutex* api_mtx;
|
||||
};
|
||||
|
||||
typedef enum {
|
||||
|
||||
Reference in New Issue
Block a user