From dbb3955a799d9ae41f0dd5e8f63bec2b9080123a Mon Sep 17 00:00:00 2001 From: Chrys Date: Thu, 22 Aug 2019 21:48:45 +0200 Subject: [PATCH] fix 7 --- src/fenrirscreenreader/screenDriver/vcsaDriver.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fenrirscreenreader/screenDriver/vcsaDriver.py b/src/fenrirscreenreader/screenDriver/vcsaDriver.py index 15bdaf5d..59007437 100644 --- a/src/fenrirscreenreader/screenDriver/vcsaDriver.py +++ b/src/fenrirscreenreader/screenDriver/vcsaDriver.py @@ -111,12 +111,12 @@ class driver(screenDriver): index = str(vcsaDev[9:]) vcsa[index] = open(vcsaDev,'rb') if index == currScreen: - lastScreenContent = vcsa[str(index)].read() + lastScreenContent = vcsa[index].read() if useVCSU: vcsuDevices = glob.glob('/dev/vcsu*') for vcsuDev in vcsuDevices: - index = vcsuDev[9:] - vcsu[str(index)] = open(vcsuDev,'rb') + index = str(vcsuDev[9:]) + vcsu[index] = open(vcsuDev,'rb') self.updateCharMap(currScreen) watchdog = select.epoll() watchdog.register(vcsa[currScreen], select.POLLPRI | select.POLLERR)