Update for rust-lorawan and lora-phy version 2.

This commit is contained in:
ceekdee
2023-09-24 10:33:03 -05:00
parent 65d36f9f99
commit 7d5e62d4a7
21 changed files with 56 additions and 105 deletions

View File

@ -41,10 +41,8 @@ async fn main(_spawner: Spawner) {
let iv =
GenericSx126xInterfaceVariant::new(nss, reset, dio1, busy, Some(rf_switch_rx), Some(rf_switch_tx)).unwrap();
let mut delay = Delay;
let mut lora = {
match LoRa::new(SX1261_2::new(BoardType::Rak4631Sx1262, spim, iv), false, &mut delay).await {
match LoRa::new(SX1261_2::new(BoardType::Rak4631Sx1262, spim, iv), false, Delay).await {
Ok(l) => l,
Err(err) => {
info!("Radio error = {}", err);