From d51e8ae006f5a938959590096d4e4b4cb8b3000e Mon Sep 17 00:00:00 2001 From: jonny_l480 Date: Mon, 21 Aug 2023 09:49:05 +0200 Subject: [PATCH] evaluatedSwitch: avoid random trigger (increase threshold) - with new hardware noticed that sometimes switch gets triggered x1 randomly when driving forward (EMI ?) - increased delay options (less responsive but more controlled) --- components/gpio/gpio_evaluateSwitch.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/gpio/gpio_evaluateSwitch.hpp b/components/gpio/gpio_evaluateSwitch.hpp index c4a27e4..9b16603 100644 --- a/components/gpio/gpio_evaluateSwitch.hpp +++ b/components/gpio/gpio_evaluateSwitch.hpp @@ -22,8 +22,8 @@ extern "C" class gpio_evaluatedSwitch { public: //--- input --- - uint32_t minOnMs = 30; - uint32_t minOffMs = 30; + uint32_t minOnMs = 90; + uint32_t minOffMs = 60; gpio_evaluatedSwitch( //constructor minimal (default parameters pullup=true, inverted=false) gpio_num_t gpio_num_declare );