mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-27 00:30:26 +00:00
Ensures no divide by zero during initial construction.
This commit is contained in:
parent
3715e6b48a
commit
614032198e
@ -205,7 +205,7 @@ class Drive: public ClockingHint::Source, public TimedEventLoop {
|
||||
|
||||
// Contains the multiplier that converts between track-relative lengths
|
||||
// to real-time lengths. So it's the reciprocal of rotation speed.
|
||||
float rotational_multiplier_;
|
||||
float rotational_multiplier_ = 1.0f;
|
||||
|
||||
// A count of time since the index hole was last seen. Which is used to
|
||||
// determine how far the drive is into a full rotation when switching to
|
||||
|
Loading…
x
Reference in New Issue
Block a user