Commit 61a9f0ef authored by Reto Da Forno's avatar Reto Da Forno
Browse files

support for new tag <pins> added

parent 6c082582
......@@ -520,7 +520,10 @@ def start_test(testid, cur, cn, obsdict_key, obsdict_id):
for gmconf in gmconfs:
obsids = gmconf.xpath('d:obsIds', namespaces=ns)[0].text.strip().split()
pinconfs = gmconf.xpath('d:pinConf', namespaces=ns)
pinlist = gmconf.xpath('d:pins', namespaces=ns)
xmlblock = "<obsGpioMonitorConf>\n"
if pinlist:
xmlblock += "\t<pins>" + pinlist[0].text.strip() + "</pins>\n"
for pinconf in pinconfs:
pin = pinconf.xpath('d:pin', namespaces=ns)[0].text.strip()
edge = pinconf.xpath('d:edge', namespaces=ns)[0].text.strip()
......
Supports Markdown
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