Fix a regression in the MX decoder.

This commit is contained in:
David Given
2022-02-12 23:37:20 +01:00
parent bc6753e5bf
commit f6b1d9c493

View File

@@ -49,6 +49,13 @@ public:
void decodeSectorRecord() void decodeSectorRecord()
{ {
/* Skip the ID pattern and track word, which is only present on the
* first sector. We don't trust the track word because some driver
* don't write it correctly. */
if (_currentSector == 0)
readRawBits(64);
auto bits = readRawBits((SECTOR_SIZE+2)*16); auto bits = readRawBits((SECTOR_SIZE+2)*16);
auto bytes = decodeFmMfm(bits).slice(0, SECTOR_SIZE+2); auto bytes = decodeFmMfm(bits).slice(0, SECTOR_SIZE+2);