Skip to content

Commit

Permalink
Merge pull request #9 from dizcza/master
Browse files Browse the repository at this point in the history
fixed name collision for keyword NONE
  • Loading branch information
jp-bennett authored Jun 24, 2024
2 parents 2b40aff + 4cc4caa commit 9d393fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/OLEDDisplayUi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -396,13 +396,13 @@ void OLEDDisplayUi::drawFrame(){

// Probe each frameFunction for the indicator drawn state
this->enableIndicator();
this->state.transitionFrameRelationship = OUTGOING;
this->state.transitionFrameRelationship = TransitionRelationship_OUTGOING;
//Since we're IN_TRANSITION, draw the old frame in a sliding-out position
(this->frameFunctions[this->state.currentFrame])(this->display, &this->state, x, y);
drawnCurrentFrame = this->state.isIndicatorDrawn;

this->enableIndicator();
this->state.transitionFrameRelationship = INCOMING;
this->state.transitionFrameRelationship = TransitionRelationship_INCOMING;
//Since we're IN_TRANSITION, draw the mew frame in a sliding-in position
(this->frameFunctions[this->getNextFrameNumber()])(this->display, &this->state, x1, y1);
// tell the consumer of this API that the frame that's coming into focus
Expand Down Expand Up @@ -433,7 +433,7 @@ void OLEDDisplayUi::drawFrame(){
// And set indicatorDrawState to "not known yet"
this->indicatorDrawState = 0;
this->enableIndicator();
this->state.transitionFrameRelationship = NONE;
this->state.transitionFrameRelationship = TransitionRelationship_NONE;
//Since we're not transitioning, just draw the current frame at the origin
(this->frameFunctions[this->state.currentFrame])(this->display, &this->state, 0, 0);
// tell the consumer of this API that the frame that's coming into focus
Expand Down
6 changes: 3 additions & 3 deletions src/OLEDDisplayUi.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ enum FrameState {
};

enum TransitionRelationship {
NONE,
INCOMING,
OUTGOING,
TransitionRelationship_NONE,
TransitionRelationship_INCOMING,
TransitionRelationship_OUTGOING,
};

const uint8_t ANIMATION_activeSymbol[] PROGMEM = {
Expand Down

0 comments on commit 9d393fe

Please sign in to comment.