From ec7dafa1b9d7dbb0eae126283d501a9af7d7ea56 Mon Sep 17 00:00:00 2001 From: Frederick Vollbrecht Date: Wed, 7 Jun 2023 16:32:17 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20use=20same=20error=20for=20all?= =?UTF-8?q?=20e-hal=200.2=20trait=20impls=20(#260)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gpio.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gpio.rs b/src/gpio.rs index 86284359c58..4f23da154fc 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -1223,14 +1223,14 @@ impl<'d, T: Pin, MODE> embedded_hal_0_2::digital::v2::OutputPin for PinDriver<'d where MODE: OutputMode, { - type Error = GpioError; + type Error = EspError; fn set_high(&mut self) -> Result<(), Self::Error> { - self.set_level(Level::High).map_err(to_gpio_err) + self.set_level(Level::High) } fn set_low(&mut self) -> Result<(), Self::Error> { - self.set_level(Level::Low).map_err(to_gpio_err) + self.set_level(Level::Low) } }