gpio: support pwmoutput
This commit is contained in:
parent
3fd0b622f8
commit
1462829956
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue