Parcourir la source

Remane repeat function MillisTimer to beginRepeating

main
PaulStoffregen il y a 7 ans
Parent
révision
8796d748b9
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. +1
    -1
      teensy3/EventResponder.cpp
  2. +1
    -1
      teensy3/EventResponder.h

+ 1
- 1
teensy3/EventResponder.cpp Voir le fichier

@@ -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 Voir le fichier

@@ -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:

Chargement…
Annuler
Enregistrer