1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-21 02:17:08 +00:00

Converts Time::get into a template, introduces a via-a-double fallback for the timed event loop.

This commit is contained in:
Thomas Harte
2018-04-25 19:54:39 -04:00
parent b4f6dee954
commit 4c6dc597f4
11 changed files with 36 additions and 22 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ void Controller::set_expected_bit_length(Time bit_length) {
// this conversion doesn't need to be exact because there's a lot of variation to be taken
// account of in rotation speed, air turbulence, etc, so a direct conversion will do
int clocks_per_bit = static_cast<int>(cycles_per_bit.get_unsigned_int());
int clocks_per_bit = cycles_per_bit.get<int>();
pll_.reset(new DigitalPhaseLockedLoop(clocks_per_bit, 3));
pll_->set_delegate(this);
}