From a694844190806c602896a0460834d5ce8397e6ea Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sat, 9 Jun 2018 17:28:08 -0400 Subject: [PATCH] Moves gap 1 into proper ownership. --- Storage/Disk/DiskImage/Formats/AppleDSK.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Storage/Disk/DiskImage/Formats/AppleDSK.cpp b/Storage/Disk/DiskImage/Formats/AppleDSK.cpp index dcedd2fde..f0780f9ff 100644 --- a/Storage/Disk/DiskImage/Formats/AppleDSK.cpp +++ b/Storage/Disk/DiskImage/Formats/AppleDSK.cpp @@ -72,11 +72,11 @@ std::shared_ptr AppleDSK::get_track_at_position(Track::Address address) { Storage::Disk::PCMSegment segment; const uint8_t track = static_cast(address.position.as_int()); - // Write gap 1. - segment += Encodings::AppleGCR::six_and_two_sync(16); - // In either case below, the code aims for exactly 50,000 bits per track. if(sectors_per_track_ == 16) { + // Write gap 1. + segment += Encodings::AppleGCR::six_and_two_sync(16); + // Write the sectors. for(uint8_t c = 0; c < 16; ++c) { segment += Encodings::AppleGCR::header(254, track, c);