remote text

pull/78/head
erikkaashoek 2 years ago
parent 98d40d2a3c
commit 9dc01b5382

@ -820,6 +820,7 @@ VNA_SHELL_FUNCTION(cmd_menu)
in_menu_command = false;
}
uint8_t remote_text = false;
VNA_SHELL_FUNCTION(cmd_text)
{
if (argc!= 1)
@ -833,6 +834,7 @@ VNA_SHELL_FUNCTION(cmd_text)
uistat.value = my_atof(kp_buf);
uistat.freq_value = my_atoui(kp_buf);
set_numeric_value();
remote_text = true;
ui_mode_normal();
}
@ -2294,7 +2296,7 @@ static const VNAShellCommand commands[] =
{ "correction", cmd_correction, CMD_RUN_IN_LOAD },
{ "calc", cmd_calc, CMD_WAIT_MUTEX | CMD_RUN_IN_LOAD},
{ "menu", cmd_menu, CMD_WAIT_MUTEX },
{ "text", cmd_text, CMD_WAIT_MUTEX },
{ "text", cmd_text, 0},
{ "remark", cmd_remark, CMD_WAIT_MUTEX },
#ifdef ENABLE_SD_CARD_CMD
{ "sd_list", cmd_sd_list, CMD_WAIT_MUTEX },

@ -260,7 +260,7 @@ bool PE4302_Write_Byte(unsigned char DATA )
#ifdef __SI5351__
#include "si5351.h"
static int shifted = 0;
static int old_shifted = -1;
//static int old_shifted = -1;
#define SHIFT_MUL 31
#define SHIFT_DIV 29

@ -7279,6 +7279,8 @@ keypad_apply_touch(void)
}
extern uint8_t in_menu_command;
extern uint8_t remote_text;
static void
ui_process_keypad(void)
{
@ -7313,6 +7315,10 @@ ui_process_keypad(void)
/* exit loop on done or cancel */
break;
}
if (remote_text) {
remote_text = false;
break;
}
}
kp_help_text = NULL;
redraw_frame();

Loading…
Cancel
Save

Powered by TurnKey Linux.