diff --git a/src/gpio.rs b/src/gpio.rs index 6600021..f8fcf3f 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -219,6 +219,8 @@ impl Pin { ffi::pinMode(self.pin_id, mode.into()); } + self.pin_mode = mode; + Ok(()) }