feat: swap the open and closed states
This commit is contained in:
parent
aa434ed39b
commit
710e3eeb94
1 changed files with 2 additions and 2 deletions
|
|
@ -53,8 +53,8 @@ impl GpioMonitor {
|
|||
|
||||
pub fn get_current_state(&self) -> CircuitEvent {
|
||||
match self.pin.read() {
|
||||
Level::High => CircuitEvent::Open,
|
||||
Level::Low => CircuitEvent::Closed,
|
||||
Level::Low => CircuitEvent::Open,
|
||||
Level::High => CircuitEvent::Closed,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue