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
|
||||
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():
|
||||
frsp = self.send_raw ('STPX D:' + raw_command[Fc] + ',R:' + self.l1_cache[uncutCommand])
|
||||
elif raw_command[Fc].startswith('1'):
|
||||
@ -1468,28 +1464,8 @@ class ELM:
|
||||
|
||||
|
||||
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)
|
||||
|
||||
# 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':
|
||||
Fc = Fc + 1
|
||||
|
||||
@ -1528,12 +1504,6 @@ class ELM:
|
||||
frames_left = (Fn - Fc)
|
||||
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:
|
||||
burstSizeCommand = ''
|
||||
for f in range(0, cf):
|
||||
@ -1593,12 +1563,7 @@ class ELM:
|
||||
|
||||
result = responses[0][4:16]
|
||||
|
||||
# receiving consecutive frames
|
||||
# while len (result) / 2 < nBytes:
|
||||
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
|
||||
nodataflag = False
|
||||
|
Loading…
x
Reference in New Issue
Block a user