comparison svr-chansession.c @ 313:fabcee551349 ucc-axis-hack

fix up newlines for the serial bit
author matt-ucc@ucc.asn.au
date Sun, 26 Mar 2006 13:18:30 +0000
parents 24056a5eb75b
children 827f87dfbc22
comparison
equal deleted inserted replaced
312:24056a5eb75b 313:fabcee551349
672 options.c_cflag &= ~PARENB; 672 options.c_cflag &= ~PARENB;
673 options.c_cflag &= ~CSTOPB; 673 options.c_cflag &= ~CSTOPB;
674 options.c_cflag &= ~CSIZE; 674 options.c_cflag &= ~CSIZE;
675 675
676 options.c_lflag &= ~(ICANON | ECHO | ECHOE | ISIG); 676 options.c_lflag &= ~(ICANON | ECHO | ECHOE | ISIG);
677
677 options.c_iflag |= (INPCK | ISTRIP); 678 options.c_iflag |= (INPCK | ISTRIP);
679 options.c_iflag |= INLCR;
678 680
679 tcsetattr(serial_fd, TCSANOW, &options); 681 tcsetattr(serial_fd, TCSANOW, &options);
680 682
681 683
682 ses.maxfd = MAX(serial_fd, channel->writefd); 684 ses.maxfd = MAX(serial_fd, channel->writefd);