Fixed a bug in fdc_pll: there is no operator* to multiply an attotime

by a double
This commit is contained in:
fulivi 2017-02-15 14:03:17 +01:00 committed by Vas Crabb
parent 6a9fa8b067
commit 6e913e5245

View File

@ -17,9 +17,10 @@ std::string fdc_pll_t::tts(attotime t)
void fdc_pll_t::set_clock(const attotime &_period)
{
period = _period;
period_adjust_base = period * 0.05;
min_period = period * 0.75;
max_period = period * 1.25;
double period_as_double = period.as_double();
period_adjust_base = attotime::from_double(period_as_double * 0.05);
min_period = attotime::from_double(period_as_double * 0.75);
max_period = attotime::from_double(period_as_double * 1.25);
}
void fdc_pll_t::reset(const attotime &when)