Skip to content

Commit 7f5410d

Browse files
committed
fix the first frame of snake animation
1 parent cab5e7e commit 7f5410d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/utility/LEDFeedback.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,9 @@ void LEDFeedbackClass::setMode(LEDFeedbackMode mode) {
194194
_framePtr = nullptr;
195195
matrix.loadSequence(snake);
196196
matrix.play(true);
197+
/* For fixing the issue that the first
198+
* frame of the first run is not shown */
199+
matrix.loadSequence(snake);
197200
#endif
198201
_ledChangeInterval = HEARTBEAT_INTERVAL;
199202
_count = 0;

0 commit comments

Comments
 (0)