fix for NAV addr problem. CLIP addr==57 but DDT addr==58
This commit is contained in:
parent
b0773ab521
commit
54166f884c
@ -287,7 +287,7 @@ class DDTECU():
|
||||
|
||||
hash = Address+DiagVersion+Supplier+Soft+Version
|
||||
|
||||
print('Address:"%s" DiagVersion:"%s" Supplier:"%s" Soft:"%s" Version:"%s"'%( Address, DiagVersion, Supplier, Soft, Version))
|
||||
print('Address="%s" DiagVersion="%s" Supplier="%s" Soft="%s" Version="%s"'%( Address, DiagVersion, Supplier, Soft, Version))
|
||||
|
||||
eculist = mod_ddt_utils.loadECUlist()
|
||||
|
||||
@ -1206,6 +1206,10 @@ def AutoIdents_distance( DiagVersion, Supplier, Soft, Version, ai ):
|
||||
|
||||
def ecuSearch(vehTypeCode, Address, DiagVersion, Supplier, Soft, Version, el, interactive = True):
|
||||
|
||||
# fix address problem for Nav
|
||||
if Address=='57':
|
||||
Address='58'
|
||||
|
||||
if Address not in list(el.keys()):
|
||||
return []
|
||||
|
||||
|
@ -1102,7 +1102,7 @@ def findTCOM( addr, cmd, rsp, pl_id = False ):
|
||||
vehTypeCode = ''
|
||||
|
||||
|
||||
if not pl_id:
|
||||
if cmd!='' and rsp!='':
|
||||
#print found ecus
|
||||
for r in list(se.allecus.keys()):
|
||||
if se.allecus[r]['dst']!=addr: continue
|
||||
|
Loading…
x
Reference in New Issue
Block a user