diff --git a/src/tty.c b/src/tty.c index efda859..01c2b1d 100644 --- a/src/tty.c +++ b/src/tty.c @@ -756,7 +756,7 @@ void handle_command_sequence(char input_char, char *output_char, bool *forward) tio_printf("Ready to receiving file '%s' ", line); tio_printf("Press any key to abort transfer"); - ret = xymodem_send(device_fd, line, XMODEM_CRC); + ret = xymodem_receive(device_fd, line, XMODEM_CRC); tio_printf("%s", ret < 0 ? "Aborted" : "Done"); } break;