bugfix no curve plot while display is off

This commit is contained in:
Verkehrsrot 2019-10-04 18:17:46 +02:00
parent a518c1a5e5
commit 1c24bed38f

View File

@ -141,6 +141,9 @@ void refreshTheDisplay(bool nextPage) {
static uint8_t DisplayPage = 0;
// update histogram if we have a display
oledPlotCurve(macs.size(), false);
// if display is switched off we don't refresh it to relax cpu
if (!DisplayIsOn && (DisplayIsOn == cfg.screenon))
return;
@ -183,9 +186,6 @@ void draw_page(time_t t, uint8_t page) {
dp_printf(0, 0, FONT_STRETCHED, 0, "PAX:%-4d",
macs.size()); // display number of unique macs total Wifi + BLE
// update histogram if we have a display
oledPlotCurve(macs.size(), false);
switch (page % DISPLAY_PAGES) {
// page 0: parameters overview