Skip to content

Commit 6d775bc

Browse files
authored
Merge pull request #468 from pennam/first-frame-fix
Matrix: initialize _lastInterval when starting a sequence
2 parents f880d64 + d1d5e9b commit 6d775bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/Arduino_LED_Matrix/src/Arduino_LED_Matrix.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ class ArduinoLEDMatrix
219219
void play(bool loop = false){
220220
_loop = loop;
221221
_sequenceDone = false;
222+
_lastInterval = millis();
222223
next();
223224
}
224225
bool sequenceDone(){

0 commit comments

Comments
 (0)