OSDN Git Service

Freedoms scientific driver space is 0xf, obviously not 0xff.
authorrui Batista <ruiandrebatista@gmail.com>
Tue, 4 Dec 2012 23:41:57 +0000 (23:41 +0000)
committerrui Batista <ruiandrebatista@gmail.com>
Tue, 4 Dec 2012 23:41:57 +0000 (23:41 +0000)
source/brailleDisplayDrivers/freedomScientific.py

index 0dcd615..ff36c6d 100755 (executable)
@@ -256,7 +256,7 @@ class KeyGesture(InputGesture, brailleInput.BrailleInputGesture):
                # If some dots or space bar is pressed, this is a dots gesture.\r
                self.dots = keyBits & 0xff\r
                # Is space?\r
-               if keyBits & (1 << 0xff):\r
+               if keyBits & (1 << 0xf):\r
                        self.space = True\r
 \r
 class RoutingGesture(InputGesture):\r