diff --git a/src/display.cpp b/src/display.cpp index 07017bf8..fdf70904 100644 --- a/src/display.cpp +++ b/src/display.cpp @@ -174,6 +174,9 @@ void dp_init(bool verbose) { void dp_refresh(bool nextPage) { + // update counter values from libpax + libpax_counter_count(&count_from_libpax); + #ifndef HAS_BUTTON static uint32_t framecounter = 0; #endif diff --git a/src/ledmatrixdisplay.cpp b/src/ledmatrixdisplay.cpp index 25faf2fa..e6b1d070 100644 --- a/src/ledmatrixdisplay.cpp +++ b/src/ledmatrixdisplay.cpp @@ -75,6 +75,9 @@ void refreshTheMatrixDisplay(bool nextPage) { case 0: + // update counter values from libpax + libpax_counter_count(&count_from_libpax); + if (cfg.countermode == 1) { // cumulative counter mode -> display total number of pax if (ulLastNumMacs != count_from_libpax.pax) {