[BRLTTY] THe log file i sent.

Dave Mielke dave at mielke.cc
Tue Feb 12 17:35:45 EST 2013


[quoted lines by Anders Holmberg on 2013/02/12 at 23:24 +0100]

>No i build it from the source or the tarball.

Good. Then testing the patch will be easy. I've attached the patch (as 
pm-init-1.patch) again in case you don't have the original message. Go into the 
top-level directory of brltty's source tree, and do this command:

   patch -p0 </path/to/pm-init-1.patch

Then rebuild. That's all there's to it. To remove the patch, you can use the 
same command with the additional option -R (uppercase), which medns reverse, or 
you can use "svn revert".

-- 
Dave Mielke           | 2213 Fox Crescent | The Bible is the very Word of God.
Phone: 1-613-726-0014 | Ottawa, Ontario   | http://Mielke.cc/bible/
EMail: dave at mielke.cc | Canada  K2A 1H7   | http://FamilyRadio.com/
-------------- next part --------------
Index: Programs/usb_serial.c
===================================================================
--- Programs/usb_serial.c	(revision 6853)
+++ Programs/usb_serial.c	(working copy)
@@ -452,12 +452,20 @@
   return usbSetModemState_FTDI(device, state, 1, "RTS");
 }
 
+static int
+usbEnableAdapter_FTDI (UsbDevice *device) {
+  if (!usbSetDtrState_FTDI(device, 1)) return 0;
+  if (!usbSetRtsState_FTDI(device, 1)) return 0;
+  return 1;
+}
+
 static const UsbSerialOperations usbSerialOperations_FTDI_SIO = {
   .setBaud = usbSetBaud_FTDI_SIO,
   .setDataFormat = usbSetDataFormat_FTDI,
   .setFlowControl = usbSetFlowControl_FTDI,
   .setDtrState = usbSetDtrState_FTDI,
-  .setRtsState = usbSetRtsState_FTDI
+  .setRtsState = usbSetRtsState_FTDI,
+  .enableAdapter = usbEnableAdapter_FTDI
 };
 
 static const UsbSerialOperations usbSerialOperations_FTDI_FT8U232AM = {


More information about the BRLTTY mailing list