Kaydet (Commit) 3c3bc485 authored tarafından Fatih Aşıcı's avatar Fatih Aşıcı

fix for reading second output info

üst 9007c326
......@@ -186,10 +186,18 @@ def getDeviceInfo(busId):
activeOutputs = []
modes = {}
for tag in activeConfigTag.tags("Output"):
name = tag.firstChild().data()
mode = tag.getAttribute("mode")
outputTag = activeConfigTag.getTag("Output")
name = outputTag.firstChild().data()
activeOutputs.append(name)
mode = outputTag.getAttribute("mode")
if mode:
modes[name] = mode
outputTag = activeConfigTag.getTag("SecondOutput")
name = outputTag.firstChild().data()
activeOutputs.append(name)
mode = outputTag.getAttribute("mode")
if mode:
modes[name] = mode
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment