gpio: support pwmoutput

This commit is contained in:
Naxdy 2024-11-02 13:19:23 +01:00
parent 3fd0b622f8
commit 1462829956
Signed by: Naxdy
GPG key ID: CC15075846BCE91B

View file

@ -211,7 +211,7 @@ impl Pin {
pub fn set_gpio_mode(&mut self, mode: PinMode) -> Result<(), GpioError> {
ensure_library_setup!();
if mode == PinMode::PwmOutput || mode == PinMode::Uninitialized {
if mode == PinMode::Uninitialized {
return Err(GpioError::UnsupportedModeError(mode));
}