[BRLTTY] problem with braille edge on powerpc machine running debian wheezy

Dave Mielke dave at mielke.cc
Fri Aug 22 20:15:46 EDT 2014


Assuming that the problem really is that your PowerPC is big endian, please 
test this patch (attached as usb-endian-1.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 --------------
diff --git a/Programs/usb_linux.c b/Programs/usb_linux.c
index e08059a..5bad741 100644
--- a/Programs/usb_linux.c
+++ b/Programs/usb_linux.c
@@ -351,6 +351,10 @@ usbControlTransfer (
     arg.transfer.data = buffer;
     arg.transfer.timeout = timeout;
 
+    arg.transfer.wValue = getLittleEndian16(arg.transfer.wValue);
+    arg.transfer.wIndex = getLittleEndian16(arg.transfer.wIndex);
+    arg.transfer.wLength = getLittleEndian16(arg.transfer.wLength);
+
     if (direction == UsbControlDirection_Output) {
       if (length) logBytes(LOG_CATEGORY(USB_IO), "control output", buffer, length);
     }


More information about the BRLTTY mailing list