git-svn-id: svn://db.shs.com.ru/pip@519 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2017-06-22 09:46:44 +00:00
parent 8c874b0fcf
commit c503b65b24
2 changed files with 47 additions and 6 deletions

View File

@@ -63,7 +63,6 @@
# include <termios.h>
# include <fcntl.h>
# include <sys/ioctl.h>
# include <linux/serial.h>
# ifndef B50
# define B50 0000001
# endif
@@ -113,6 +112,9 @@
#ifndef CRTSCTS
# define CRTSCTS 020000000000
#endif
#if defined(LINUX)
# include <linux/serial.h>
#endif
/*! \class PISerial
@@ -828,7 +830,7 @@ void PISerial::optionsChanged() {
void PISerial::threadedReadBufferSizeChanged() {
if (!isOpened()) return;
#ifndef WINDOWS
#if defined(LINUX)
serial_struct ss;
ioctl(fd, TIOCGSERIAL, &ss);
//piCoutObj << "b" << ss.xmit_fifo_size;