Skip to content

Commit 567b359

Browse files
committed
Added requires for delay to have input parameter be a time unit
1 parent 57047ef commit 567b359

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

klib/delay.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ namespace klib {
143143
bool LowPowerSleep = TARGET_LOW_POWER_SLEEP,
144144
typename T = time::ms
145145
>
146-
static void delay(const T time) {
146+
static void delay(const T time) requires time::is_time_unit<T> {
147147
// get the amount of seconds in the time
148148
const auto sec = static_cast<time::s>(time);
149149

0 commit comments

Comments
 (0)