瀏覽代碼

Remane repeat function MillisTimer to beginRepeating

teensy4-core
PaulStoffregen 7 年之前
父節點
當前提交
8796d748b9
共有 2 個檔案被更改,包括 2 行新增2 行删除
  1. +1
    -1
      teensy3/EventResponder.cpp
  2. +1
    -1
      teensy3/EventResponder.h

+ 1
- 1
teensy3/EventResponder.cpp 查看文件

@@ -194,7 +194,7 @@ void MillisTimer::begin(unsigned long milliseconds, EventResponderRef event)
addToList();
}

void MillisTimer::beginRepeat(unsigned long milliseconds, EventResponderRef event)
void MillisTimer::beginRepeating(unsigned long milliseconds, EventResponderRef event)
{
end();
if (!milliseconds) return;

+ 1
- 1
teensy3/EventResponder.h 查看文件

@@ -230,7 +230,7 @@ public:
end();
}
void begin(unsigned long milliseconds, EventResponderRef event);
void beginRepeat(unsigned long milliseconds, EventResponderRef event);
void beginRepeating(unsigned long milliseconds, EventResponderRef event);
void end();
static void runFromTimer();
private:

Loading…
取消
儲存