Skip to content

Commit

Permalink
取消可选模糊参数
Browse files Browse the repository at this point in the history
  • Loading branch information
Ebola-Chan-bot committed Jul 9, 2021
1 parent 103a44f commit 0ebcaa3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Internal/RepeatAfter.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace TimersOneForAll
}
//每隔指定毫秒数重复执行任务。重复次数若为负数,或不指定重复次数,则默认无限重复
template <uint8_t TimerCode, uint16_t IntervalMilliseconds, void (*DoTask)(), void (*DoneCallback)() = nullptr>
void RepeatAfter(int32_t RepeatTimes = -1)
void RepeatAfter(int32_t RepeatTimes)
{
constexpr Internal::TimerSetting TS = Internal::GetTimerSetting(TimerCode, IntervalMilliseconds);
Internal::SLRepeaterSet<TimerCode, TS.TCNT, TS.PrescalerBits, DoTask, DoneCallback>(RepeatTimes);
Expand Down
2 changes: 1 addition & 1 deletion src/Internal/SquareWave.h
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ namespace TimersOneForAll
}
//生成循环数有限的方波。如不指定循环次数,默认无限循环
template <uint8_t TimerCode, uint8_t PinCode, uint16_t HighMilliseconds, uint16_t LowMilliseconds, void (*DoneCallback)() = nullptr>
void SquareWave(int16_t RepeatTimes = -1)
void SquareWave(int16_t RepeatTimes)
{
Internal::InternalSW<TimerCode, PinCode, HighMilliseconds, LowMilliseconds, DoneCallback>(RepeatTimes);
}
Expand Down

0 comments on commit 0ebcaa3

Please sign in to comment.