Fix the North Star decoder after the PLL upgrade.

This commit is contained in:
Howard M. Harte
2021-12-06 17:55:54 -10:00
parent 36c2263675
commit 4a91a35799

View File

@@ -127,13 +127,11 @@ public:
if (matcher == &MFM_PATTERN) { if (matcher == &MFM_PATTERN) {
_sectorType = SECTOR_TYPE_MFM; _sectorType = SECTOR_TYPE_MFM;
readRawBits(48);
return SECTOR_RECORD; return SECTOR_RECORD;
} }
if (matcher == &FM_PATTERN) { if (matcher == &FM_PATTERN) {
_sectorType = SECTOR_TYPE_FM; _sectorType = SECTOR_TYPE_FM;
readRawBits(48);
return SECTOR_RECORD; return SECTOR_RECORD;
} }
@@ -155,6 +153,8 @@ public:
headerSize = NORTHSTAR_HEADER_SIZE_SD; headerSize = NORTHSTAR_HEADER_SIZE_SD;
} }
readRawBits(48);
auto rawbits = readRawBits(recordSize * 16); auto rawbits = readRawBits(recordSize * 16);
auto bytes = decodeFmMfm(rawbits).slice(0, recordSize); auto bytes = decodeFmMfm(rawbits).slice(0, recordSize);
ByteReader br(bytes); ByteReader br(bytes);