Browse Source

lowl-vcom: set_serial_rts should return the new rts value, if anything

Luke Dashjr 12 years ago
parent
commit
5cbf86b22a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lowl-vcom.c

+ 1 - 1
lowl-vcom.c

@@ -1123,7 +1123,7 @@ int set_serial_rts(int fd, int rts)
 		flags &= ~TIOCM_RTS;
 		flags &= ~TIOCM_RTS;
 
 
 	ioctl(fd, TIOCMSET, &flags);
 	ioctl(fd, TIOCMSET, &flags);
-	return flags & TIOCM_CTS;
+	return rts ? 1 : 0;
 }
 }
 #else
 #else
 int get_serial_cts(const int fd)
 int get_serial_cts(const int fd)