From a17e4a6894a4170aa3137f1bf7e9331712e5d0af Mon Sep 17 00:00:00 2001 From: cyberman54 Date: Fri, 7 May 2021 19:50:22 +0200 Subject: [PATCH] bugfix set_countmode --- src/rcommand.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/rcommand.cpp b/src/rcommand.cpp index 3c9d2d75..ca01f990 100644 --- a/src/rcommand.cpp +++ b/src/rcommand.cpp @@ -147,6 +147,10 @@ void set_countmode(uint8_t val[]) { "Remote command: set counter mode called with invalid parameter(s)"); return; } +#if ((WIFICOUNTER) || (BLECOUNTER)) + libpax_counter_stop(); + init_libpax(); // re-inits counter mode from cfg.countermode +#endif } void set_screensaver(uint8_t val[]) {