Skip to content

Commit

Permalink
display.cpp: bugfix blank page (PR #943)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberman54 committed Mar 5, 2023
1 parent 3d08ed9 commit d2d9d4e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ MY_FONT_LARGE: 16x32px = 8 chars / line @ 2 lines
#include "globals.h"
#include "display.h"


static uint8_t plotbuf[PLOTBUFFERSIZE] = {0};
uint8_t DisplayIsOn = 0;
hw_timer_t *displayIRQ = NULL;
Expand Down Expand Up @@ -374,8 +373,8 @@ void dp_refresh(bool nextPage) {
#ifdef HAS_BUTTON
dp_clear();
break;
#else // skip this page
DisplayPage++;
#else // skip this page and start over
DisplayPage = 0;
break;
#endif
} // switch (page)
Expand Down

0 comments on commit d2d9d4e

Please sign in to comment.