Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/periph/gpio_ll: fix randomly failing test
A test intended to ensure that a configuration toggling the direction of a GPIO two times restores the original configuration not only compared the configuration at the two points in time, but also the value of the input buffer. Since a floating input reads back random values when not externally driven, the test was actually randomly failing. Apparently I got lucky before consistently and this never triggered until now. This now clears the input value from both the configuration reported before and after toggling the direction twice and should now indeed succeed consistently.
- Loading branch information