Skip to content

Commit 9d393fe

Browse files
authored
Merge pull request #9 from dizcza/master
fixed name collision for keyword NONE
2 parents 2b40aff + 4cc4caa commit 9d393fe

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/OLEDDisplayUi.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -396,13 +396,13 @@ void OLEDDisplayUi::drawFrame(){
396396

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

404404
this->enableIndicator();
405-
this->state.transitionFrameRelationship = INCOMING;
405+
this->state.transitionFrameRelationship = TransitionRelationship_INCOMING;
406406
//Since we're IN_TRANSITION, draw the mew frame in a sliding-in position
407407
(this->frameFunctions[this->getNextFrameNumber()])(this->display, &this->state, x1, y1);
408408
// tell the consumer of this API that the frame that's coming into focus
@@ -433,7 +433,7 @@ void OLEDDisplayUi::drawFrame(){
433433
// And set indicatorDrawState to "not known yet"
434434
this->indicatorDrawState = 0;
435435
this->enableIndicator();
436-
this->state.transitionFrameRelationship = NONE;
436+
this->state.transitionFrameRelationship = TransitionRelationship_NONE;
437437
//Since we're not transitioning, just draw the current frame at the origin
438438
(this->frameFunctions[this->state.currentFrame])(this->display, &this->state, 0, 0);
439439
// tell the consumer of this API that the frame that's coming into focus

src/OLEDDisplayUi.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ enum FrameState {
7575
};
7676

7777
enum TransitionRelationship {
78-
NONE,
79-
INCOMING,
80-
OUTGOING,
78+
TransitionRelationship_NONE,
79+
TransitionRelationship_INCOMING,
80+
TransitionRelationship_OUTGOING,
8181
};
8282

8383
const uint8_t ANIMATION_activeSymbol[] PROGMEM = {

0 commit comments

Comments
 (0)