aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embassy-nrf/src/gpio.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/embassy-nrf/src/gpio.rs b/embassy-nrf/src/gpio.rs
index b7230302a..6ef5033eb 100644
--- a/embassy-nrf/src/gpio.rs
+++ b/embassy-nrf/src/gpio.rs
@@ -88,9 +88,9 @@ impl From<bool> for Level {
88 } 88 }
89} 89}
90 90
91impl Into<bool> for Level { 91impl From<Level> for bool {
92 fn into(self) -> bool { 92 fn from(level: Level) -> bool {
93 match self { 93 match level {
94 Level::Low => false, 94 Level::Low => false,
95 Level::High => true, 95 Level::High => true,
96 } 96 }