From 2e17c88804c6fbe30d2408d9b87ebaa9cee28c58 Mon Sep 17 00:00:00 2001 From: Jack Wilsdon Date: Wed, 19 Dec 2018 22:00:17 +0000 Subject: [PATCH] Allow hardware to redefine pulsemeter debounce --- code/espurna/config/sensors.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/espurna/config/sensors.h b/code/espurna/config/sensors.h index 212ec96a..84644d2b 100644 --- a/code/espurna/config/sensors.h +++ b/code/espurna/config/sensors.h @@ -618,7 +618,9 @@ #define PULSEMETER_INTERRUPT_ON FALLING #endif +#ifndef PULSEMETER_DEBOUNCE #define PULSEMETER_DEBOUNCE 50 // Do not register pulses within less than 50 millis +#endif //------------------------------------------------------------------------------ // PZEM004T based power monitor