Skip to content

Commit

Permalink
Merge branch 't3307' into next
Browse files Browse the repository at this point in the history
Incubates #3307.
  • Loading branch information
jcsteh committed Jul 11, 2013
2 parents 8eb77c4 + 1d42139 commit 1a5fe8b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
15 changes: 13 additions & 2 deletions source/brailleDisplayDrivers/freedomScientific.py
Expand Up @@ -49,7 +49,11 @@
inputType_wizWheel=5

# Names of freedom scientific bluetooth devices
bluetoothNames = ("Focus 40 BT",)
bluetoothNames = (
"F14", "Focus 14 BT",
"Focus 40 BT",
"Focus 80 BT",
)

keysPressed=0
extendedKeysPressed=0
Expand Down Expand Up @@ -130,7 +134,14 @@ def getPossiblePorts(cls):

@classmethod
def _getBluetoothPorts(cls):
return (p["port"].encode("mbcs") for p in hwPortUtils.listComPorts() if p.get("bluetoothName") in bluetoothNames)
for p in hwPortUtils.listComPorts():
try:
btName = p["bluetoothName"]
except KeyError:
continue
if not any(btName == prefix or btName.startswith(prefix + " ") for prefix in bluetoothNames):
continue
yield p["port"].encode("mbcs")

wizWheelActions=[
# Translators: The name of a key on a braille display, that scrolls the display to show previous/next part of a long line.
Expand Down
1 change: 1 addition & 0 deletions user_docs/en/changes.t2t
Expand Up @@ -16,6 +16,7 @@
- Sleep mode is automatically enabled when using Dolphin Cicero. (#2055)
- The Windows x64 version of Miranda IM/Miranda NG is now supported. (#3296)
- Search suggestions in the Windows 8.1 Start Screen are automatically reported. (#3322)
- The Freedom Scientific Focus 14 Blue and Focus 80 Blue braille displays, as well as the Focus 40 Blue in certain configurations that weren't supported previously, are now supported when connected via Bluetooth. (#3307)


== Changes ==
Expand Down

0 comments on commit 1a5fe8b

Please sign in to comment.