From af59fa0a7e1ef98e773822a5629b212c0f27f96a Mon Sep 17 00:00:00 2001 From: ceekdee Date: Tue, 12 Sep 2023 17:53:27 -0500 Subject: [PATCH] Wait for high for DIO1 for rp2040-based LoRa boards. --- embassy-lora/src/iv.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/embassy-lora/src/iv.rs b/embassy-lora/src/iv.rs index 136973fe..de6a1834 100644 --- a/embassy-lora/src/iv.rs +++ b/embassy-lora/src/iv.rs @@ -284,11 +284,7 @@ where self.busy.wait_for_low().await.map_err(|_| Busy) } async fn await_irq(&mut self) -> Result<(), RadioError> { - if self.board_type != BoardType::RpPicoWaveshareSx1262 { - self.dio1.wait_for_high().await.map_err(|_| DIO1)?; - } else { - self.dio1.wait_for_rising_edge().await.map_err(|_| DIO1)?; - } + self.dio1.wait_for_high().await.map_err(|_| DIO1)?; Ok(()) }