Skip to content

Commit 0ebcaa3

Browse files
取消可选模糊参数
1 parent 103a44f commit 0ebcaa3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Internal/RepeatAfter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace TimersOneForAll
1818
}
1919
//每隔指定毫秒数重复执行任务。重复次数若为负数,或不指定重复次数,则默认无限重复
2020
template <uint8_t TimerCode, uint16_t IntervalMilliseconds, void (*DoTask)(), void (*DoneCallback)() = nullptr>
21-
void RepeatAfter(int32_t RepeatTimes = -1)
21+
void RepeatAfter(int32_t RepeatTimes)
2222
{
2323
constexpr Internal::TimerSetting TS = Internal::GetTimerSetting(TimerCode, IntervalMilliseconds);
2424
Internal::SLRepeaterSet<TimerCode, TS.TCNT, TS.PrescalerBits, DoTask, DoneCallback>(RepeatTimes);

src/Internal/SquareWave.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ namespace TimersOneForAll
266266
}
267267
//生成循环数有限的方波。如不指定循环次数,默认无限循环
268268
template <uint8_t TimerCode, uint8_t PinCode, uint16_t HighMilliseconds, uint16_t LowMilliseconds, void (*DoneCallback)() = nullptr>
269-
void SquareWave(int16_t RepeatTimes = -1)
269+
void SquareWave(int16_t RepeatTimes)
270270
{
271271
Internal::InternalSW<TimerCode, PinCode, HighMilliseconds, LowMilliseconds, DoneCallback>(RepeatTimes);
272272
}

0 commit comments

Comments
 (0)