diff options
author | あく <alleteam@gmail.com> | 2021-10-04 10:01:41 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-04 10:01:41 +0300 |
commit | 832fb1b795ddb4ca15068bc090b1db86ae984aba (patch) | |
tree | 2bee727385468034072feeddebd47c648174675c /applications/subghz/subghz.c | |
parent | a7edebce69039ba65b31a18b57062c29bc39c867 (diff) |
[FL-1228] FuriHal: add charge suppress API. (#743)
* FuriHal: add charge suppress API.
* FuriHal: add guards to insomnia and charge suppress routines.
* FuriHal: proper API for scheduler in power.
* FuriHal: move charging control from critical section, fix deadlock.
* Gui: use FreeRTOS native timers controls for IconAnimation, fix crash on animation start stop
Diffstat (limited to 'applications/subghz/subghz.c')
-rw-r--r-- | applications/subghz/subghz.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/applications/subghz/subghz.c b/applications/subghz/subghz.c index 02da799d..38145697 100644 --- a/applications/subghz/subghz.c +++ b/applications/subghz/subghz.c @@ -260,8 +260,12 @@ int32_t subghz_app(void* p) { scene_manager_next_scene(subghz->scene_manager, SubGhzSceneStart); } + furi_hal_power_suppress_charge_enter(); + view_dispatcher_run(subghz->view_dispatcher); + furi_hal_power_suppress_charge_exit(); + subghz_free(subghz); return 0; |