fix(gpio): properly update own pin mode

This commit is contained in:
Naxdy 2024-11-03 11:45:50 +01:00
parent 1462829956
commit a59295e803
Signed by: Naxdy
GPG key ID: CC15075846BCE91B

View file

@ -219,6 +219,8 @@ impl Pin {
ffi::pinMode(self.pin_id, mode.into()); ffi::pinMode(self.pin_id, mode.into());
} }
self.pin_mode = mode;
Ok(()) Ok(())
} }