skip duplicate sector logic

This commit is contained in:
4am 2018-05-24 11:20:34 -04:00
parent 0b0eb4ae61
commit 3bd0de5803
2 changed files with 3 additions and 1 deletions

View File

@ -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)

View File

@ -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