From 0dfa4e9ceca0457f8f95abec0f5c3134ef8c4292 Mon Sep 17 00:00:00 2001 From: erikkaashoek Date: Thu, 6 May 2021 19:09:37 +0200 Subject: [PATCH] Removed SEND DISPLAY --- ui.c | 4 ++-- ui_sa.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ui.c b/ui.c index ec295d1..e28d49b 100644 --- a/ui.c +++ b/ui.c @@ -91,7 +91,7 @@ enum { }; #endif -#define NUMINPUT_LEN 10 +#define NUMINPUT_LEN 12 static uint8_t ui_mode = UI_NORMAL; static uint8_t keypad_mode; static char kp_buf[NUMINPUT_LEN+1]; @@ -1653,7 +1653,7 @@ draw_numeric_input(const char *buf) ili9341_set_foreground(LCD_INPUT_TEXT_COLOR); ili9341_set_background(LCD_INPUT_BG_COLOR); - for (i = 0, x = 64; i < 10 && buf[i]; i++, xsim<<=1) { + for (i = 0, x = 64; i < NUMINPUT_LEN && buf[i]; i++, xsim<<=1) { int c = buf[i]; if (c == '.') c = KP_PERIOD; diff --git a/ui_sa.c b/ui_sa.c index 789c11a..34a2168 100644 --- a/ui_sa.c +++ b/ui_sa.c @@ -2588,9 +2588,9 @@ static const menuitem_t menu_display[] = { #endif { MT_ADV_CALLBACK,4, "WATER\nFALL", menu_waterfall_acb}, { MT_SUBMENU, 0, "SWEEP\nSETTINGS", menu_sweep_speed}, -#ifdef __REMOTE_DESKTOP__ - { MT_ADV_CALLBACK,0, "SEND\nDISPLAY", menu_send_display_acb}, -#endif +//#ifdef __REMOTE_DESKTOP__ +// { MT_ADV_CALLBACK,0, "SEND\nDISPLAY", menu_send_display_acb}, +//#endif // { MT_KEYPAD, KM_SWEEP_TIME, "SWEEP\nTIME", NULL}, { MT_CANCEL, 0, S_LARROW" BACK", NULL },