You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
681 B
35 lines
681 B
//
|
|
// Created by MightyPork on 2023/04/09.
|
|
//
|
|
|
|
|
|
#include <stddef.h>
|
|
#include "app_gui.h"
|
|
#include "app_heater.h"
|
|
#include "screen_menu.h"
|
|
|
|
static const char* manual_menu_opts[] = {
|
|
"Zrušit",
|
|
"Hlavní menu",
|
|
NULL
|
|
};
|
|
|
|
static void manual_menu_cb(int opt) {
|
|
switch (opt) {
|
|
case 0:
|
|
// Close menu
|
|
switch_screen(screen_manual, false);
|
|
break;
|
|
|
|
case 1:
|
|
s_app.heater_enabled = false;
|
|
app_heater_enable(false);
|
|
switch_screen(screen_home, true);
|
|
break;
|
|
}
|
|
}
|
|
|
|
void screen_manual_menu(GuiEvent event)
|
|
{
|
|
screen_menu(event, manual_menu_opts, manual_menu_cb);
|
|
}
|
|
|