[BRLTTY] Braille el 40 s does not detect after reconnection.
Dave Mielke
dave at mielke.cc
Wed Feb 20 19:03:08 EST 2013
[quoted lines by Anders Holmberg on 2013/02/20 at 22:48 +0100]
>I am not sure how to test patches.
>How do i implement them in to brltty?
First of all, just in case you no longer have the patch, I've attached it to
this message (as pm-init-2.patch).
I believe you've built brltty for yourself. If you still have the source tree,
then use it. If you don't, check it back out from the repository. If you're
using an already configured tree, there'll be no need to reconfigure it.
To apply the patch, do this:
cd /path/to/brltty
patch -p0 </path/to/pm-init-2.patch
make
That's all there's to it. Change to the top-level directory of the tree, apply
the patch, and then just make and install. After that, restart brltty so that
the version with the patch is running. Then, do whatever you normally do and
see if it still fails or if it works. If you can, please keep a log file so
that, in case it still doesn't work, we can have another look.
You can remove the patch in one of two ways. One is to use svn's revert
function. The other is to add the patch command's -R (uppercase) option, like
this:
patch -p0 -R </path/to/pm-init-2.patch
--
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 = {
@@ -465,7 +473,8 @@
.setDataFormat = usbSetDataFormat_FTDI,
.setFlowControl = usbSetFlowControl_FTDI,
.setDtrState = usbSetDtrState_FTDI,
- .setRtsState = usbSetRtsState_FTDI
+ .setRtsState = usbSetRtsState_FTDI,
+ .enableAdapter = usbEnableAdapter_FTDI
};
static const UsbSerialOperations usbSerialOperations_FTDI_FT232BM = {
@@ -473,7 +482,8 @@
.setDataFormat = usbSetDataFormat_FTDI,
.setFlowControl = usbSetFlowControl_FTDI,
.setDtrState = usbSetDtrState_FTDI,
- .setRtsState = usbSetRtsState_FTDI
+ .setRtsState = usbSetRtsState_FTDI,
+ .enableAdapter = usbEnableAdapter_FTDI
};
More information about the BRLTTY
mailing list