Skip to content

Commit 6fac03a

Browse files
authored
fix timeout reset
original code fails on double click fail after odd single click
1 parent 1a77e83 commit 6fac03a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Sequence.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ bool Sequence::newPress(uint32_t read_started_ms)
2727
else if (_press_sequence_duration <= (read_started_ms - _first_press_time))
2828
{
2929
// Sequence timeout
30-
reset();
31-
return false;
30+
_short_press_count = 1;
31+
_first_press_time = read_started_ms;
3232
}
3333
}
3434
return false;

0 commit comments

Comments
 (0)