Pi4J / pi4j-v1

DEPRECATED Java I/O library for Raspberry Pi (GPIO, I2C, SPI, UART)
http://www.pi4j.com
Apache License 2.0
1.31k stars 447 forks source link

Incorrect logic checking for PWM Mode #465

Closed fclinton closed 5 years ago

fclinton commented 5 years ago

Will always throw throw new InvalidPinModeException Because to return false for mode != PinMode.PWM_OUTPUT || mode != PinMode.SOFT_PWM_OUTPUT you would have to both be !=PinMode.PWM_OUTPUT and !=PinMode.SOFT_PWM_OUTPUT

fclinton commented 5 years ago

related issue #453