Skip to content

Commit

Permalink
NVDA no longer freezes in some cases when reconnecting to a HumanWare…
Browse files Browse the repository at this point in the history
… Brailliant BI/B series display via USB.

Fixes #5406.
  • Loading branch information
jcsteh committed Nov 1, 2015
1 parent 775a7ea commit 453c6f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion source/brailleDisplayDrivers/brailliantB.py
Expand Up @@ -2,7 +2,7 @@
#A part of NonVisual Desktop Access (NVDA)
#This file is covered by the GNU General Public License.
#See the file COPYING for more details.
#Copyright (C) 2012-2013 NV Access Limited
#Copyright (C) 2012-2015 NV Access Limited

import os
import time
Expand Down Expand Up @@ -112,6 +112,11 @@ def __init__(self):
continue
# This will cause the number of cells to be returned.
self._sendMessage(MSG_INIT)
# #5406: With the new USB driver, the first command is ignored after a reconnection.
# Worse, if we don't receive a reply,
# _handleResponses freezes for some reason despite the timeout.
# Send the init message again just in case.
self._sendMessage(MSG_INIT)
self._handleResponses(wait=True)
if not self.numCells:
# HACK: When connected via bluetooth, the display sometimes reports communication not allowed on the first attempt.
Expand Down
1 change: 1 addition & 0 deletions user_docs/en/changes.t2t
Expand Up @@ -34,6 +34,7 @@
- NVDA now correctly switches to focus mode when tabbing to read-only ARIA grid controls in Browse Mode for Mozilla Firefox and other Gecko-based controls. (#5118)
- NVDA now correctly reports "no previous" instead of "no next" when there are no more objects when flicking left on a touch screen.
- Fixed problems when typing multiple words into the filter field in the Input Gestures dialog. (#5426)
- NVDA no longer freezes in some cases when reconnecting to a HumanWare Brailliant BI/B series display via USB. (#5406)


= 2015.3 =
Expand Down

0 comments on commit 453c6f2

Please sign in to comment.