mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Rework the flux decoders to add a desync opcode for separating multiple reads
in a flux stream. Finally add a unit test for the flux decoder.
This commit is contained in:
@@ -84,7 +84,7 @@ std::unique_ptr<TrackDataFlux> AbstractDecoder::decodeToSectors(
|
||||
return std::move(_trackdata);
|
||||
if ((r == UNKNOWN_RECORD) || (r == DATA_RECORD))
|
||||
{
|
||||
fmr.findEvent(F_BIT_PULSE);
|
||||
fmr.skipToEvent(F_BIT_PULSE);
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -106,7 +106,7 @@ std::unique_ptr<TrackDataFlux> AbstractDecoder::decodeToSectors(
|
||||
r = advanceToNextRecord();
|
||||
if (r != UNKNOWN_RECORD)
|
||||
break;
|
||||
if (fmr.findEvent(F_BIT_PULSE) == 0)
|
||||
if (fmr.eof())
|
||||
break;
|
||||
}
|
||||
recordStart = fmr.tell();
|
||||
|
||||
Reference in New Issue
Block a user