Inconsistent API in GPIO edge callback
kwieclaw opened this issue · comments
Currently, the implementation uses Read() to create EventArgs in Peripheral.Gpio.OnInterrupted. Unfortunately, value can change from the moment callback was called to the moment of calling Read(). This can result in passing value High, when user registered only on falling edge. That makes this parameter basically useless and misleading.
This parameter should be either dropped or changed to provide consistent and deterministic results.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days