diff --git a/src/gpio.rs b/src/gpio.rs
index 51f6965..6600021 100644
--- a/src/gpio.rs
+++ b/src/gpio.rs
@@ -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));
         }