Sfoglia il codice sorgente

Remane repeat function MillisTimer to beginRepeating

teensy4-core
PaulStoffregen 7 anni fa
parent
commit
8796d748b9
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +1
    -1
      teensy3/EventResponder.cpp
  2. +1
    -1
      teensy3/EventResponder.h

+ 1
- 1
teensy3/EventResponder.cpp Vedi File

@@ -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 Vedi File

@@ -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…
Annulla
Salva