unify more loops, remove spaces

This commit is contained in:
Chrys
2019-09-05 23:12:05 +02:00
parent 8663ad1ac9
commit 3f85d672a6
12 changed files with 96 additions and 96 deletions

View File

@@ -16,11 +16,11 @@ class driver(brailleDriver):
self.env = environment
try:
import brlapi
self._brl = brlapi.Connection()
self._deviceSize = self._brl.displaySize
self._brl = brlapi.Connection()
self._deviceSize = self._brl.displaySize
except Exception as e:
print(e)
self.env['runtime']['debug'].writeDebugOut(str(e),debug.debugLevel.ERROR)
self.env['runtime']['debug'].writeDebugOut(str(e),debug.debugLevel.ERROR)
return
self._isInitialized = True

View File

@@ -44,6 +44,6 @@ class driver(brailleDriver):
def shutdown(self):
if self._isInitialized:
self.leveScreen()
self._isInitialized = False
self.leveScreen()
self._isInitialized = False
print('Braille Debug Driver: Shutdown')