1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-29 12:50:28 +00:00

Spell out slightly more; this makes debugging a touch easier.

This commit is contained in:
Thomas Harte 2021-10-06 13:40:48 -07:00
parent 33ff4f3b5c
commit ed303310bb

View File

@ -28,7 +28,8 @@ ClockingHint::Preference Controller::preferred_clocking() const {
// Nominate RealTime clocking if any drive currently wants any clocking whatsoever.
// Otherwise, ::None will do.
for(auto &drive: drives_) {
if(drive.preferred_clocking() != ClockingHint::Preference::None) {
const auto preferred_clocking = drive.preferred_clocking();
if(preferred_clocking != ClockingHint::Preference::None) {
return ClockingHint::Preference::RealTime;
}
}