fix(gpio): properly update own pin mode
This commit is contained in:
parent
1462829956
commit
a59295e803
1 changed files with 2 additions and 0 deletions
|
@ -219,6 +219,8 @@ impl Pin {
|
|||
ffi::pinMode(self.pin_id, mode.into());
|
||||
}
|
||||
|
||||
self.pin_mode = mode;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue