mirror of
https://github.com/a2-4am/passport.py.git
synced 2024-06-16 11:29:29 +00:00
skip duplicate sector logic
This commit is contained in:
parent
0b0eb4ae61
commit
3bd0de5803
|
@ -37,6 +37,6 @@ else:
|
|||
print("unrecognized file type")
|
||||
usage(1)
|
||||
|
||||
logger = DefaultLogger # TODO add flag to change this
|
||||
logger = DebugLogger # TODO add flag to change this
|
||||
|
||||
processor(reader(inputfile), logger)
|
||||
|
|
|
@ -220,6 +220,7 @@ class RWTS:
|
|||
break
|
||||
# decode address field
|
||||
address_field = self.address_field_at_point(track)
|
||||
self.logger.debug(repr(address_field.sector_num))
|
||||
if address_field.sector_num in verified_sectors:
|
||||
# the sector we just found is a sector we've already decoded
|
||||
# properly, so skip past it
|
||||
|
@ -780,6 +781,7 @@ class BasePassportProcessor: # base class
|
|||
# main loop - loop through disk from track $22 down to track $00
|
||||
for track_num in range(0x22, -1, -1):
|
||||
self.g.track = track_num
|
||||
self.logger.debug("Seeking to track %s" % hex(self.g.track))
|
||||
try_again = True
|
||||
while try_again:
|
||||
try_again = False
|
||||
|
|
Loading…
Reference in New Issue
Block a user