mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-16 18:30:32 +00:00
Make references to constant non-specific.
This commit is contained in:
parent
e69c777373
commit
db4c802003
@ -79,9 +79,9 @@ std::shared_ptr<::Storage::Disk::Track> NIB::get_track_at_position(::Storage::Di
|
||||
}
|
||||
|
||||
// NIB files leave sync bytes implicit and make no guarantees
|
||||
// about overall track positioning. The attempt works by locating
|
||||
// any single run of FF that is sufficiently long and marking the last
|
||||
// five as including slip bits.
|
||||
// about overall track positioning. This attempt to map to real
|
||||
// flux locates any single run of FF that is sufficiently long
|
||||
// and marks the last few as including slip bits.
|
||||
std::set<size_t> sync_locations;
|
||||
for(size_t index = 0; index < track_data.size(); ++index) {
|
||||
// Count the number of FFs starting from here.
|
||||
@ -92,7 +92,7 @@ std::shared_ptr<::Storage::Disk::Track> NIB::get_track_at_position(::Storage::Di
|
||||
++length;
|
||||
}
|
||||
|
||||
// If that's at least five, regress and mark all as syncs.
|
||||
// If that's long enough, regress and mark syncs.
|
||||
if(length >= MinimumSyncByteCount) {
|
||||
for(int c = 0; c < int(MinimumSyncByteCount); c++) {
|
||||
end = (end + track_data.size() - 1) % track_data.size();
|
||||
|
Loading…
x
Reference in New Issue
Block a user