[FL-2019] Battery test application (#940)
* Power: rework API * Applications: introduce battery test application * Power: fix typo * Desktop: cleanup merge artifacts Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
This commit is contained in:
@@ -11,6 +11,8 @@
|
||||
|
||||
#include <notification/notification-messages.h>
|
||||
|
||||
#define POWER_BATTERY_HEALTHY_LEVEL 70
|
||||
|
||||
typedef enum {
|
||||
PowerStateNotCharging,
|
||||
PowerStateCharging,
|
||||
@@ -30,11 +32,13 @@ struct Power {
|
||||
|
||||
PowerState state;
|
||||
PowerInfo info;
|
||||
osMutexId_t info_mtx;
|
||||
|
||||
bool battery_low;
|
||||
bool show_low_bat_level_message;
|
||||
uint8_t battery_level;
|
||||
uint8_t power_off_timeout;
|
||||
|
||||
osMutexId_t api_mtx;
|
||||
};
|
||||
|
||||
typedef enum {
|
||||
|
Reference in New Issue
Block a user