do cleanups

This commit is contained in:
chrys 2016-10-08 11:45:17 +02:00
parent 556519187b
commit adc5384249

View File

@ -44,10 +44,18 @@ class driver():
def connectDevice(self):
self._brl = brlapi.Connection()
def enterTTY(self):
if not self._isInitialized:
return
self._brl.enterTtyModeWithPath()
def shutdown(self):
def leveTTY(self):
if not self._isInitialized:
return
self._brl.leaveTtyMode()
def shutdown(self):
if not self._isInitialized:
return
self.leveTTY()