[BRLTTY] USB support on Active Braille
Mario Lang
mlang at delysid.org
Sat Jan 19 09:50:55 EST 2013
lars at lamasti.net (Lars Bjørndal) writes:
> With recent svn versions of BRLTTY, there is something horrible wrong
> with the USB support on Handy Tech Active Braille. The braille display
> isn't updated unless you press a key on the display itself. So if brltty
> is started and you type something at the command line prompt, the typed
> text isn't on the display untill you press a key on the display.
>
> I have firmware version 2.1, which is an unofficial version.
I can now confirm your problem description on a device with Firmware
2.5.
I have a quick fix, but we need to dive more into the details of this
problem to fix it sufficiently well.
--- a/Drivers/Braille/HandyTech/braille.c
+++ b/Drivers/Braille/HandyTech/braille.c
@@ -1527,6 +1527,17 @@ brl_readCommand (BrailleDisplay *brl, KeyTableCommandContext context) {
const unsigned char *bytes = &packet.fields.data.extended.data.bytes[0];
switch (packet.fields.data.extended.type) {
+ case HT_EXTPKT_Confirmation:
+ switch (bytes[0]) {
+ case HT_PKT_NAK:
+ updateRequired = 1;
+ case HT_PKT_ACK:
+ return EOF;
+
+ default:
+ break;
+ }
+ break;
case HT_EXTPKT_Key:
if (model->interpretByte(bytes[0])) {
updateCells(brl);
--
CYa,
⡍⠁⠗⠊⠕ | Debian Developer <URL:http://debian.org/>
.''`. | Get my public key via finger mlang/key at db.debian.org
: :' : | 1024D/7FC1A0854909BCCDBE6C102DDFFC022A6B113E44
`. `'
`- <URL:http://delysid.org/> <URL:http://www.staff.tugraz.at/mlang/>
More information about the BRLTTY
mailing list