git-svn-id: svn://db.shs.com.ru/pip@519 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user