diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-09-12 23:00:25 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-09-12 23:00:25 +0000 |
| commit | 5e381d49da3d934defab072cecbac640b378138e (patch) | |
| tree | 6018c577a4bd08a71933899aef99ce906372ce42 | |
| parent | 4907ccaa4daecb1b25d636795860eee58891548c (diff) | |
| parent | af59fa0a7e1ef98e773822a5629b212c0f27f96a (diff) | |
Merge pull request #1893 from ceekdee/main
Wait for high for DIO1 for rp2040-based LoRa boards
| -rw-r--r-- | embassy-lora/src/iv.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/embassy-lora/src/iv.rs b/embassy-lora/src/iv.rs index 136973fe3..de6a18342 100644 --- a/embassy-lora/src/iv.rs +++ b/embassy-lora/src/iv.rs | |||
| @@ -284,11 +284,7 @@ where | |||
| 284 | self.busy.wait_for_low().await.map_err(|_| Busy) | 284 | self.busy.wait_for_low().await.map_err(|_| Busy) |
| 285 | } | 285 | } |
| 286 | async fn await_irq(&mut self) -> Result<(), RadioError> { | 286 | async fn await_irq(&mut self) -> Result<(), RadioError> { |
| 287 | if self.board_type != BoardType::RpPicoWaveshareSx1262 { | 287 | self.dio1.wait_for_high().await.map_err(|_| DIO1)?; |
| 288 | self.dio1.wait_for_high().await.map_err(|_| DIO1)?; | ||
| 289 | } else { | ||
| 290 | self.dio1.wait_for_rising_edge().await.map_err(|_| DIO1)?; | ||
| 291 | } | ||
| 292 | Ok(()) | 288 | Ok(()) |
| 293 | } | 289 | } |
| 294 | 290 | ||
