diff --git a/cpp/buses/bus.cpp b/cpp/buses/bus.cpp index eda9776c..e240df1f 100644 --- a/cpp/buses/bus.cpp +++ b/cpp/buses/bus.cpp @@ -296,7 +296,7 @@ bool Bus::WaitSignal(int pin, bool state) spdlog::warn("Received RST signal during {} phase, aborting", GetPhaseName(GetPhase())); return false; } - } while ((chrono::duration_cast < chrono::seconds > (chrono::steady_clock::now() - now).count()) < 3); + } while ((chrono::duration_cast(chrono::steady_clock::now() - now).count()) < 3); spdlog::trace("Timeout while waiting for ACK/REQ to change to {}", state ? "true" : "false");