mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Fix the North Star decoder after the PLL upgrade.
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user