9q fix#11 doc_maker

This commit is contained in:
shrlnm 2019-10-28 22:59:03 +03:00
parent 69e03a448e
commit f94f17cd73
2 changed files with 2 additions and 1 deletions

View File

@ -188,7 +188,7 @@ def convertXML(root, h_t, fns, ff, lid):
#debug
#xfile = e.attrib['id']
elif e.tag == 'title':
elif e.tag == 'title' and e.text:
if fns[4]!='000000':
title = 'DTC'+fns[4]+' '+e.text
fns[4] = '000000'

View File

@ -156,6 +156,7 @@ class ScanEcus:
canL = '12'
self.elm.init_can()
print self.allecus
for ecu, row in sorted(self.allecus.iteritems(),key = lambda (x,y) :y['idf']+y['protocol']):
if (self.allecus[ecu]['pin']=='can' and
self.allecus[ecu]['pin1']==canH and