[FL-1905] Fix power off notification (#748)

* view dispatcher: add set view front API
* power: add power off notification
* Gui: rename ViewPort `send_to` API.
* Makefile: add blackmagick support

Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
This commit is contained in:
gornekich
2021-10-06 18:41:22 +03:00
committed by GitHub
parent c8b36dd406
commit 5232d5daba
12 changed files with 66 additions and 34 deletions

View File

@@ -5,10 +5,9 @@
#include <furi-hal.h>
void power_cli_poweroff(Cli* cli, string_t args, void* context) {
power_off();
Power* power = furi_record_open("power");
printf("It's now safe to disconnect USB from your flipper\r\n");
while(cli_getc(cli)) {
}
power_off(power);
}
void power_cli_reboot(Cli* cli, string_t args, void* context) {