1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 08:49:37 +00:00

Corrects FM/MFM selection when looking for sectors.

This commit is contained in:
Thomas Harte 2017-09-29 22:48:00 -04:00
parent 5dd3945695
commit 326857a84d

View File

@ -46,7 +46,7 @@ void Storage::Disk::decode_sectors(Track &track, uint8_t *const destination, uin
std::map<size_t, Storage::Encodings::MFM::Sector> sectors =
Storage::Encodings::MFM::sectors_from_segment(
Storage::Disk::track_serialisation(track, is_double_density ? Storage::Encodings::MFM::MFMBitLength : Storage::Encodings::MFM::FMBitLength),
true);
is_double_density);
size_t byte_size = (size_t)(128 << sector_size);
for(auto &pair : sectors) {