From 1d017b489df76982c35a3251fa4ef03a16895d4a Mon Sep 17 00:00:00 2001 From: sanderpuh <16467665+sanderpuh@users.noreply.github.com> Date: Mon, 5 Aug 2024 10:59:45 +0200 Subject: [PATCH] Add quickswap options to inputs menu --- src/ui/page_input.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ui/page_input.c b/src/ui/page_input.c index fdf1acbc..4779dc4d 100644 --- a/src/ui/page_input.c +++ b/src/ui/page_input.c @@ -11,6 +11,7 @@ #include "core/osd.h" #include "ui/page_fans.h" +#include "ui/page_source.h" #include "ui/ui_image_setting.h" /** @@ -36,8 +37,8 @@ typedef enum page_input_rows { static lv_coord_t col_dsc[] = {160, 200, 160, 160, 160, 120, LV_GRID_TEMPLATE_LAST}; static lv_coord_t row_dsc[] = {60, 60, 60, 60, 60, 60, 60, 60, 60, LV_GRID_TEMPLATE_LAST}; -const char *btnOptions[] = {"Toggle OSD", "Main menu", "Toggle DVR", "Center HT", "Calibrate HT", "Go Sleep!", "Toggle fan speed", "Star DVR"}; -void (* const btnFunctionPointers[])() = {&osd_toggle, &app_switch_to_menu, &dvr_toggle, &ht_set_center_position, &ht_calibrate, &go_sleep, &step_topfan, &dvr_star}; +const char *btnOptions[] = {"Toggle OSD", "Main menu", "Toggle DVR", "Center HT", "Calibrate HT", "Go Sleep!", "Toggle fan speed", "Star DVR", "Toggle source", "Cycle source"}; +void (* const btnFunctionPointers[])() = {&osd_toggle, &app_switch_to_menu, &dvr_toggle, &ht_set_center_position, &ht_calibrate, &go_sleep, &step_topfan, &dvr_star, &source_toggle, &source_cycle}; const char *rollerOptions[] = {"Switch channel", "Change fan speed", "OLED Brightness"}; void (* const rollerFunctionPointers[])(uint8_t) = {&tune_channel, &change_topfan, &change_oled_brightness};