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