Skip to content

Commit 42cd0bc

Browse files
committed
Quick hack to set currentFrame at 0 when calling setFrames.
Allows multilevel navigation. Signed-off-by: CaptainStouf <stouf@hardware-libre.org>
1 parent 06dbc89 commit 42cd0bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

SSD1306Ui.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ void SSD1306Ui::setFrameAnimation(AnimationDirection dir) {
9696
void SSD1306Ui::setFrames(FrameCallback* frameFunctions, uint8_t frameCount) {
9797
this->frameCount = frameCount;
9898
this->frameFunctions = frameFunctions;
99+
this->state.currentFrame = 0;
99100
}
100101

101102
// -/----- Overlays ------\-

0 commit comments

Comments
 (0)