Skip to content

Commit 2f58fbd

Browse files
committed
Adding initialisation for debounce timeout which should fix Issue #5
1 parent 01f8ba6 commit 2f58fbd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/esp32-showcontrol/Button.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Button::Button(const String n, const uint8_t p, const uint8_t l)
1212
: buttonName(n), pin(p), LED_pin(l) {
1313
buttonMap.insert(std::make_pair(p, this));
1414
invert = false;
15+
debounceMillis = millis();
1516
}
1617

1718
void Button::begin() {

0 commit comments

Comments
 (0)