STD_A freeze frame
This commit is contained in:
parent
97684de33e
commit
f5e864453f
@ -714,10 +714,18 @@ class ECU:
|
||||
|
||||
index = int(choice[1])-1
|
||||
dtchex = listkeys[index] if len(listkeys) > index else listkeys[0]
|
||||
mod_globals.ext_cur_DTC = dtchex
|
||||
|
||||
path = path+' -> '+defstr[dtchex]+'\n\n'+hlpstr[dtchex]+'\n'
|
||||
|
||||
mem_dtrf_txt = mod_globals.language_dict['299'] + " DTC" + mod_globals.ext_cur_DTC + "\n"
|
||||
|
||||
cur_dtrf = [ecu_screen_dataref(0, "\n" + mod_globals.language_dict['300'] + "\n", 'Text')] + self.Defaults[dtchex[:4]].datarefs
|
||||
mem_dtrf = [ecu_screen_dataref(0, mem_dtrf_txt, 'Text')] + self.Defaults[dtchex[:4]].ssdatarefs
|
||||
|
||||
self.show_datarefs(self.Defaults[dtchex[:4]].datarefs, path)
|
||||
tmp_dtrf = mem_dtrf + cur_dtrf
|
||||
|
||||
self.show_datarefs(tmp_dtrf, path)
|
||||
|
||||
def show_defaults_std_b(self):
|
||||
while(1):
|
||||
|
@ -35,6 +35,14 @@ def get_mnemonicDTC( m, resp ):
|
||||
|
||||
def get_mnemonic( m, se, elm, raw = 0 ):
|
||||
|
||||
if not m.serviceID and mod_globals.ext_cur_DTC:
|
||||
for sid in se.keys():
|
||||
if se[sid].startReq.endswith(mod_globals.ext_cur_DTC[:4]):
|
||||
m.startByte = se[sid].responces[se[sid].responces.keys()[0]].mnemolocations[m.name].startByte
|
||||
m.startBit = se[sid].responces[se[sid].responces.keys()[0]].mnemolocations[m.name].startBit
|
||||
m.request = se[sid].startReq
|
||||
m.positive = se[sid].simpleRsp
|
||||
|
||||
#get responce
|
||||
if len(m.sids)>0:
|
||||
for sid in m.sids:
|
||||
|
Loading…
x
Reference in New Issue
Block a user