* This was originally written for blob and then adapted for busybox.
*/
//config:config RX
-//config: bool "rx"
+//config: bool "rx (2.9 kb)"
//config: default y
//config: select PLATFORM_LINUX
//config: help
-//config: Receive files using the Xmodem protocol.
+//config: Receive files using the Xmodem protocol.
//applet:IF_RX(APPLET(rx, BB_DIR_USR_BIN, BB_SUID_DROP))
int blockBegin;
int blockNo, blockNoOnesCompl;
int cksum_or_crc;
- int expected;
+ unsigned expected;
int i, j;
blockBegin = read_byte(timeout);
termios_err = tcgetattr(read_fd, &tty);
if (termios_err == 0) {
+//TODO: use set_termios_to_raw()
orig_tty = tty;
cfmakeraw(&tty);
tcsetattr(read_fd, TCSAFLUSH, &tty);