Commit e73cc947 authored by nextime's avatar nextime

Fix analog autodetection

parent 75efaf23
...@@ -229,7 +229,7 @@ class ANABoard(object): ...@@ -229,7 +229,7 @@ class ANABoard(object):
def getAnalogsNames(self): def getAnalogsNames(self):
if not self.analist: if not self.analist:
ret = {} ret = {}
for i in [self.firstAna, self.firstAna+self.numAna-1]: for i in xrange(self.firstAna, self.numInp+self.numAna):
ana=BoardAnalog() ana=BoardAnalog()
ana.name = xml.getElementsByTagName(self.ioXML, 'i'+str(i))[0].firstChild().toxml() ana.name = xml.getElementsByTagName(self.ioXML, 'i'+str(i))[0].firstChild().toxml()
ana.num = i-12 ana.num = i-12
......
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