display.cpp: bugfix blank page (PR #943)

This commit is contained in:
cyberman54 2023-03-05 15:56:41 +01:00
parent 3d08ed98fd
commit d2d9d4e49f

View File

@ -37,7 +37,6 @@ MY_FONT_LARGE: 16x32px = 8 chars / line @ 2 lines
#include "globals.h" #include "globals.h"
#include "display.h" #include "display.h"
static uint8_t plotbuf[PLOTBUFFERSIZE] = {0}; static uint8_t plotbuf[PLOTBUFFERSIZE] = {0};
uint8_t DisplayIsOn = 0; uint8_t DisplayIsOn = 0;
hw_timer_t *displayIRQ = NULL; hw_timer_t *displayIRQ = NULL;
@ -374,8 +373,8 @@ void dp_refresh(bool nextPage) {
#ifdef HAS_BUTTON #ifdef HAS_BUTTON
dp_clear(); dp_clear();
break; break;
#else // skip this page #else // skip this page and start over
DisplayPage++; DisplayPage = 0;
break; break;
#endif #endif
} // switch (page) } // switch (page)