Merge pull request #1893 from ceekdee/main
Wait for high for DIO1 for rp2040-based LoRa boards
This commit is contained in:
commit
5e381d49da
1 changed files with 1 additions and 5 deletions
|
@ -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)?;
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue