Adjusted for linux builds without RS485 specific terminal I/O settings.

This commit is contained in:
skarg
2011-05-10 15:52:52 +00:00
parent 267f5c03b3
commit 1d4e487b29
+4
View File
@@ -79,6 +79,10 @@ static unsigned int RS485_Baud = B38400;
/* serial port name, /dev/ttyS0,
/dev/ttyUSB0 for USB->RS485 from B&B Electronics USOPTL4 */
static char *RS485_Port_Name = "/dev/ttyUSB0";
/* some terminal I/O have RS-485 specific functionality */
#ifndef RS485MOD
#define RS485MOD 0
#endif
/* serial I/O settings */
static struct termios RS485_oldtio;