Skip to content

Commit

Permalink
Remove time check on PushButton raise press ended event
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianstevens committed Jul 12, 2022
1 parent bdccf98 commit adf7611
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Source/Meadow.Foundation.Core/Sensors/Buttons/PushButton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,8 @@ void DigitalInChanged(object sender, DigitalPortResult result)
RaiseClicked();
}

if (pressDuration.TotalMilliseconds > 0)
{
// raise the other events
RaisePressEnded();
}
// raise the other events
RaisePressEnded();
}
}

Expand Down

0 comments on commit adf7611

Please sign in to comment.