feat: swap the open and closed states

This commit is contained in:
Jet Pham 2025-06-06 20:30:34 -07:00
parent aa434ed39b
commit 710e3eeb94
No known key found for this signature in database

View file

@ -53,8 +53,8 @@ impl GpioMonitor {
pub fn get_current_state(&self) -> CircuitEvent { pub fn get_current_state(&self) -> CircuitEvent {
match self.pin.read() { match self.pin.read() {
Level::High => CircuitEvent::Open, Level::Low => CircuitEvent::Open,
Level::Low => CircuitEvent::Closed, Level::High => CircuitEvent::Closed,
} }
} }
} }