Skip to content

Commit

Permalink
fix timeout reset
Browse files Browse the repository at this point in the history
 original code fails on double click fail after odd single click
  • Loading branch information
ssk8 authored Sep 24, 2020
1 parent 1a77e83 commit 6fac03a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Sequence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ bool Sequence::newPress(uint32_t read_started_ms)
else if (_press_sequence_duration <= (read_started_ms - _first_press_time))
{
// Sequence timeout
reset();
return false;
_short_press_count = 1;
_first_press_time = read_started_ms;
}
}
return false;
Expand Down

0 comments on commit 6fac03a

Please sign in to comment.