1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-07-23 16:24:17 +00:00

Shuffled a little to reduce risk of overflow, ensured writing is a loop, still seem to be writing too quickly for some reason.

This commit is contained in:
Thomas Harte
2016-12-25 16:13:05 -05:00
parent d2ad2c756e
commit 98be6ede45
2 changed files with 5 additions and 2 deletions

View File

@@ -189,7 +189,7 @@ void Controller::set_expected_bit_length(Time bit_length)
bit_length_ = bit_length;
bit_length_.simplify();
cycles_per_bit_ = Storage::Time(8000000) * (bit_length * rotational_multiplier_);
cycles_per_bit_ = Storage::Time(8000000) * (bit_length * rotational_multiplier_) * Storage::Time(clock_rate_multiplier_);
cycles_per_bit_.simplify();
// this conversion doesn't need to be exact because there's a lot of variation to be taken