ButtonBase.IsPressed not properly initialized #2328
Labels
bug
Something isn't working
Priority:3
Work that is nice to have
up-for-grabs
Good issue for external contributors to iot
Describe the bug
After initializing a GpioButton, the IsPressed property is always false, even if the logical state (depending on active low/high configuration) of the pin is true.
Steps to reproduce
This examples assumes pin 16 being externally pulled up, having a switch connected which is currently pulling the input low.
Expected behavior
IsPressed should be initialized according to the initial pin state instead after the first transition.
Versions used
System.Device.Gpio
package: 3.1.0The text was updated successfully, but these errors were encountered: