Api-hal-power: reset routine. Power: safe to poweroff message, cleanup. (#436)

This commit is contained in:
あく
2021-04-30 07:51:48 +03:00
committed by GitHub
parent eb82748d50
commit 43ff095724
8 changed files with 77 additions and 38 deletions

View File

@@ -6,7 +6,7 @@
#include <gui/canvas.h>
#include <gui/view.h>
typedef enum { PowerViewInfo, PowerViewDialog, PowerViewOff } PowerView;
typedef enum { PowerViewInfo, PowerViewDialog, PowerViewOff, PowerViewDisconnect } PowerView;
typedef struct {
float current_charger;
@@ -34,3 +34,5 @@ typedef struct {
void power_info_draw_callback(Canvas* canvas, void* context);
void power_off_draw_callback(Canvas* canvas, void* context);
void power_disconnect_draw_callback(Canvas* canvas, void* context);