From cd421712f5b4d0a8ddb1deba115dee1b87bd14d7 Mon Sep 17 00:00:00 2001 From: chrys Date: Thu, 16 Feb 2023 21:31:22 +0100 Subject: [PATCH] Fix vcsu breakage --- src/fenrirscreenreader/screenDriver/vcsaDriver.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/fenrirscreenreader/screenDriver/vcsaDriver.py b/src/fenrirscreenreader/screenDriver/vcsaDriver.py index ca696534..516053c1 100644 --- a/src/fenrirscreenreader/screenDriver/vcsaDriver.py +++ b/src/fenrirscreenreader/screenDriver/vcsaDriver.py @@ -99,6 +99,11 @@ class driver(screenDriver): def updateWatchdog(self,active , eventQueue): try: useVCSU = os.access('/dev/vcsu', os.R_OK) + try: + with open('/dev/vcsu', 'rb') as vcsuDummyFile: + d = vcsuDummyFile.read() + except: + useVCSU = False vcsa = {} vcsaDevices = glob.glob('/dev/vcsa*') vcsu = {}