mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Fix submenu response when invalid key hit
This commit is contained in:
parent
17bb6edfd2
commit
15ba034ce5
1 changed files with 5 additions and 1 deletions
|
|
@ -676,7 +676,7 @@ void handle_command_sequence(char input_char, char *output_char, bool *forward)
|
||||||
tty_line_poke(device_fd, TIOCM_RI, line_mode, option.ri_pulse_duration);
|
tty_line_poke(device_fd, TIOCM_RI, line_mode, option.ri_pulse_duration);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
tio_warning_printf("Invalid line number");
|
tio_error_print("Invalid line number");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
@ -705,6 +705,10 @@ void handle_command_sequence(char input_char, char *output_char, bool *forward)
|
||||||
tio_printf("%s", xymodem_send(device_fd, line, XMODEM_CRC) < 0 ? "Aborted" : "Done");
|
tio_printf("%s", xymodem_send(device_fd, line, XMODEM_CRC) < 0 ? "Aborted" : "Done");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
tio_error_print("Invalid protocol option");
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue