Skip to content

Commit

Permalink
Merge pull request #370 from WildernessLabs/adrian-button-event
Browse files Browse the repository at this point in the history
Remove time check on PushButton raise press ended event
  • Loading branch information
adrianstevens authored Jul 12, 2022
2 parents 4735593 + adf7611 commit a2840f6
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 a2840f6

Please sign in to comment.