Make all service memory structures OFW comaptible

This commit is contained in:
Willy-JL
2023-08-29 01:57:06 +02:00
parent d87d982b2b
commit d7aa3ea60f
15 changed files with 63 additions and 30 deletions

View File

@@ -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

View File

@@ -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 {