From a59295e803e8b2e094dedf8830ccbe70507b7fac Mon Sep 17 00:00:00 2001 From: Naxdy Date: Sun, 3 Nov 2024 11:45:50 +0100 Subject: [PATCH] fix(gpio): properly update own pin mode --- src/gpio.rs | 2 ++ 1 file changed, 2 insertions(+) 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(()) }