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

fix for reading second output info

üst 9007c326
......@@ -186,12 +186,20 @@ def getDeviceInfo(busId):
activeOutputs = []
modes = {}
for tag in activeConfigTag.tags("Output"):
name = tag.firstChild().data()
mode = tag.getAttribute("mode")
activeOutputs.append(name)
if mode:
modes[name] = 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
device.desktop_setup = activeConfigTag.getTagData("DesktopSetup")
......
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