From 46796b47caabba1cdbd4b5a3173aaaed0456ee73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thierry=20K=C3=BChni?= Date: Sat, 20 Jan 2024 22:13:51 +0100 Subject: [PATCH] fix embedded-hal is_low impl --- src/gpio/hal.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gpio/hal.rs b/src/gpio/hal.rs index 7e4a1685..ae81ed4b 100644 --- a/src/gpio/hal.rs +++ b/src/gpio/hal.rs @@ -30,7 +30,7 @@ impl embedded_hal::digital::InputPin for InputPin { } fn is_low(&mut self) -> Result { - Ok((*self).is_high()) + Ok((*self).is_low()) } }