Avoid invalid hex character messages when switching hex mode

This commit is contained in:
Martin Lund 2022-07-22 22:03:47 +02:00
parent c24cbfcd34
commit d28007f0d3

View file

@ -1209,7 +1209,7 @@ int tty_connect(void)
/* Save previous key */
previous_char = input_char;
if (print_mode == HEX)
if ((print_mode == HEX) && (forward))
{
if (!is_valid_hex(input_char))
{