diff --git a/include/Platform.h b/include/Platform.h index a1d49e0..148c041 100644 --- a/include/Platform.h +++ b/include/Platform.h @@ -20,10 +20,10 @@ #pragma once -#include +#include #include namespace platform { - void wait(std::chrono::milliseconds t) noexcept; + void wait(std::uint32_t milliseconds) noexcept; } diff --git a/src/PlatformStm32.cpp b/src/PlatformStm32.cpp index 8fe16ce..990f0ad 100644 --- a/src/PlatformStm32.cpp +++ b/src/PlatformStm32.cpp @@ -22,9 +22,9 @@ namespace platform { - void wait(std::chrono::milliseconds t) noexcept + void wait(std::uint32_t milliseconds) noexcept { - HAL_Delay(t.count()); + HAL_Delay(milliseconds); } } diff --git a/test/mock/PlatformMock.cpp b/test/mock/PlatformMock.cpp index e7ef7ff..9e6b862 100644 --- a/test/mock/PlatformMock.cpp +++ b/test/mock/PlatformMock.cpp @@ -24,8 +24,8 @@ namespace platform { - void wait(std::chrono::milliseconds t) noexcept + void wait(std::uint32_t milliseconds) noexcept { - mock("platform").actualCall("wait").withParameter("timeMs", static_cast(t.count())); + mock("platform").actualCall("wait").withParameter("timeMs", static_cast(milliseconds)); } }