From 88c1dd4e0cce14a29141be617c7d38e4dc1a5e9d Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Sat, 27 Oct 2018 22:40:17 +0200 Subject: [PATCH] rcommand.cpp: bugfix set_countmode() --- src/rcommand.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rcommand.cpp b/src/rcommand.cpp index ab82deaa..37460d86 100644 --- a/src/rcommand.cpp +++ b/src/rcommand.cpp @@ -105,7 +105,10 @@ void set_countmode(uint8_t val[]) { ESP_LOGW( TAG, "Remote command: set counter mode called with invalid parameter(s)"); + return; } + reset_counters(); // clear macs + get_salt(); // get new salt } void set_screensaver(uint8_t val[]) {