remove unused code
This commit is contained in:
parent
6e0185ec38
commit
53f73d96dc
@ -1455,10 +1455,6 @@ class ELM:
|
|||||||
Fn = len(raw_command) # Number of frames
|
Fn = len(raw_command) # Number of frames
|
||||||
frsp = ''
|
frsp = ''
|
||||||
|
|
||||||
# if Fn > 1:
|
|
||||||
# self.send_raw('at cfc1')
|
|
||||||
# print 'cfc1', raw_command
|
|
||||||
|
|
||||||
if raw_command[Fc].startswith('0') and uncutCommand in self.l1_cache.keys():
|
if raw_command[Fc].startswith('0') and uncutCommand in self.l1_cache.keys():
|
||||||
frsp = self.send_raw ('STPX D:' + raw_command[Fc] + ',R:' + self.l1_cache[uncutCommand])
|
frsp = self.send_raw ('STPX D:' + raw_command[Fc] + ',R:' + self.l1_cache[uncutCommand])
|
||||||
elif raw_command[Fc].startswith('1'):
|
elif raw_command[Fc].startswith('1'):
|
||||||
@ -1468,28 +1464,8 @@ class ELM:
|
|||||||
|
|
||||||
|
|
||||||
while Fc < Fn:
|
while Fc < Fn:
|
||||||
# if Fn > 1 and (Fn - Fc) == 1:
|
|
||||||
# self.send_raw('at cfc0')
|
|
||||||
# # print 'cfc0:', Fn, Fc
|
|
||||||
|
|
||||||
# enable responses
|
|
||||||
|
|
||||||
# if not self.ATR1:
|
|
||||||
# frsp = self.send_raw('at r1')
|
|
||||||
# self.ATR1 = True
|
|
||||||
|
|
||||||
tb = time.time() # time of sending (ff)
|
tb = time.time() # time of sending (ff)
|
||||||
|
|
||||||
# if len (raw_command[Fc]) == 16:
|
|
||||||
# frsp = self.send_raw (raw_command[Fc])
|
|
||||||
# else:
|
|
||||||
# frsp = self.send_raw (raw_command[Fc] + '1') # we'll get only 1 frame: fc, ff or sf
|
|
||||||
|
|
||||||
# if raw_command[Fc].startswith('0'):
|
|
||||||
# frsp = self.send_raw ('STPX D:' + raw_command[Fc] + ', R:' + l1_cache[command]) # we'll get only 1 frame: fc, ff or sf
|
|
||||||
# if raw_command[Fc].startswith('1'):
|
|
||||||
# frsp = self.send_raw (raw_command[Fc] + '1')
|
|
||||||
|
|
||||||
if raw_command[Fc][:1] != '2':
|
if raw_command[Fc][:1] != '2':
|
||||||
Fc = Fc + 1
|
Fc = Fc + 1
|
||||||
|
|
||||||
@ -1528,12 +1504,6 @@ class ELM:
|
|||||||
frames_left = (Fn - Fc)
|
frames_left = (Fn - Fc)
|
||||||
cf = min({BS, frames_left}) # number of frames to send without response
|
cf = min({BS, frames_left}) # number of frames to send without response
|
||||||
|
|
||||||
# disable responses
|
|
||||||
# if cf > 0:
|
|
||||||
# if self.ATR1:
|
|
||||||
# frsp = self.send_raw('at r0')
|
|
||||||
# self.ATR1 = False
|
|
||||||
|
|
||||||
while cf > 0:
|
while cf > 0:
|
||||||
burstSizeCommand = ''
|
burstSizeCommand = ''
|
||||||
for f in range(0, cf):
|
for f in range(0, cf):
|
||||||
@ -1593,12 +1563,7 @@ class ELM:
|
|||||||
|
|
||||||
result = responses[0][4:16]
|
result = responses[0][4:16]
|
||||||
|
|
||||||
# receiving consecutive frames
|
|
||||||
# while len (result) / 2 < nBytes:
|
|
||||||
while cFrame < nFrames:
|
while cFrame < nFrames:
|
||||||
# now we should send ff
|
|
||||||
# sBS = hex(min({nFrames - cFrame, MaxBurst}))[2:]
|
|
||||||
# frsp = self.send_raw('300' + sBS + '00' + sBS)
|
|
||||||
|
|
||||||
# analyse response
|
# analyse response
|
||||||
nodataflag = False
|
nodataflag = False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user