diff --git a/cores/esp8266/PolledTimeout.h b/cores/esp8266/PolledTimeout.h index 91bebaa79b..95157d3772 100644 --- a/cores/esp8266/PolledTimeout.h +++ b/cores/esp8266/PolledTimeout.h @@ -142,6 +142,7 @@ class timeoutTemplate { public: using timeType = typename TimePolicyT::timeType; + static_assert(std::is_unsigned::value == true, "timeType must be unsigned"); static constexpr timeType alwaysExpired = 0; static constexpr timeType neverExpires = std::numeric_limits::max();