Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
call to displayPage instead of refreshPage
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Dunston committed Jan 12, 2019
1 parent 2895c58 commit db918e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/NextionInterface.h
Expand Up @@ -172,14 +172,14 @@ class NextionTurnoutPage : public DCCPPNextionPage {
virtual void refreshPage() {}
void incrementTurnoutPage() {
_turnoutStartIndex += TURNOUTS_PER_PAGE;
refreshPage();
displayPage();
}
void decrementTurnoutPage() {
_turnoutStartIndex -= TURNOUTS_PER_PAGE;
if(_turnoutStartIndex < 0) {
_turnoutStartIndex = 0;
}
refreshPage();
displayPage();
}
protected:
virtual void init() {}
Expand Down

0 comments on commit db918e3

Please sign in to comment.