f0rmz: define shutdown method
This commit is contained in:
parent
ba47419288
commit
f97bec3402
1 changed files with 5 additions and 0 deletions
|
|
@ -275,6 +275,11 @@ static void toggle_theme_btn_clicked_cb(lv_event_t *event) {
|
|||
toggle_theme();
|
||||
}
|
||||
|
||||
static void shutdown(void) {
|
||||
sync();
|
||||
reboot(RB_POWER_OFF);
|
||||
}
|
||||
|
||||
static void sigaction_handler(int signum) {
|
||||
bbx_terminal_reset_current_terminal();
|
||||
exit(signum);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue