Merge pull request #1893 from ceekdee/main

Wait for high for DIO1 for rp2040-based LoRa boards
This commit is contained in:
Dario Nieuwenhuis 2023-09-12 23:00:25 +00:00 committed by GitHub
commit 5e381d49da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(())
}