[FL-1995] New dolphin animations (part 1) (#835)
* Desktop Animation (part 1): Ugly naked ohmygod architecture * fix butthurt, fix locked scene * Change SD icons, fixes * Fix level update animation * Fixes, correct butthurt * Clean up code * furi_assert(0) -> furi_crash("msg") * Gui: rename none layer to desktop, update docs. Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
5
applications/power/power_service/power.c
Executable file → Normal file
5
applications/power/power_service/power.c
Executable file → Normal file
@@ -7,6 +7,11 @@
|
||||
#include <gui/view.h>
|
||||
|
||||
#define POWER_OFF_TIMEOUT 90
|
||||
#define POWER_BATTERY_WELL_LEVEL 99
|
||||
|
||||
bool power_is_battery_well(PowerInfo* info) {
|
||||
return info->health > POWER_BATTERY_WELL_LEVEL;
|
||||
}
|
||||
|
||||
void power_draw_battery_callback(Canvas* canvas, void* context) {
|
||||
furi_assert(context);
|
||||
|
@@ -2,6 +2,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
#include <furi/pubsub.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
typedef struct Power Power;
|
||||
|
||||
@@ -63,3 +64,5 @@ void power_get_info(Power* power, PowerInfo* info);
|
||||
* @param power - Power instance
|
||||
*/
|
||||
FuriPubSub* power_get_pubsub(Power* power);
|
||||
|
||||
bool power_is_battery_well(PowerInfo* info);
|
||||
|
Reference in New Issue
Block a user