Skip to content

Commit ba75556

Browse files
committed
Use updated debouncer API
1 parent 75becd5 commit ba75556

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ButtonBase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ BUTTONSUITE::BUTTONSTATUS ButtonBase::update()
7979
// if "read" returns false.
8080
if (!_debouncer.read())
8181
{
82-
if (_debouncer.duration() < _longPressInterval)
82+
if (_debouncer.currentDuration() < _longPressInterval)
8383
{
8484
#ifdef BUTTONSUITEDEBUG
8585
Serial.println("ButtonBase::update: ISSHORTPRESSED");

0 commit comments

Comments
 (0)