From 1c24bed38f4dccf1a4b171c5ba33cdc547a48dc8 Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Fri, 4 Oct 2019 18:17:46 +0200 Subject: [PATCH] bugfix no curve plot while display is off --- src/display.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/display.cpp b/src/display.cpp index 5770cabc..3eb792c8 100644 --- a/src/display.cpp +++ b/src/display.cpp @@ -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