thinwire-setRTS.patch
Date: Wed Aug 18 16:53:06 EST 2004
Author: Jeremy Kerr
Title: Set RTS bit on serial line before select()
Status: Committed

This patch raises the RTS line of the serial connection before we call select.
Thinwire over serial doesn't work without this patch - will block on the
select() indefinitely.

diff -u -r1.46 thinwire.c
--- ./tools/build/shared/thinwire/thinwire-src/thinwire.c	4 Aug 2004 14:47:07 -0000	1.46
+++ ./tools/build/shared/thinwire/thinwire-src/thinwire.c	18 Aug 2004 06:53:01 -0000
@@ -956,6 +956,7 @@
 		FD_SET(channel[0].data_socket,&fds);
 	    }
 	    FD_SET(victim_fd, &fds);
+	    bitSet(victim_fd, TIOCM_RTS);
 	    ret = select(max_sock, &fds, NULL, NULL, NULL);
 	    if (FD_ISSET(victim_fd, &fds)) {
 		len = VictimRead(buf, sizeof(buf));
