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