Fix vcsu breakage

This commit is contained in:
chrys 2023-02-16 21:31:22 +01:00 committed by GitHub
parent 73f4c69cf0
commit cd421712f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = {}