f0rmz: define shutdown method

This commit is contained in:
Jens Reidel 2025-10-02 05:36:07 +00:00 committed by Johannes Marbach
parent ba47419288
commit f97bec3402

View file

@ -275,6 +275,11 @@ static void toggle_theme_btn_clicked_cb(lv_event_t *event) {
toggle_theme(); toggle_theme();
} }
static void shutdown(void) {
sync();
reboot(RB_POWER_OFF);
}
static void sigaction_handler(int signum) { static void sigaction_handler(int signum) {
bbx_terminal_reset_current_terminal(); bbx_terminal_reset_current_terminal();
exit(signum); exit(signum);