diff options
Diffstat (limited to 'embassy-lora/src')
| -rw-r--r-- | embassy-lora/src/lib.rs | 2 | ||||
| -rw-r--r-- | embassy-lora/src/sx127x/sx127x_lora/mod.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/embassy-lora/src/lib.rs b/embassy-lora/src/lib.rs index 29ea45863..1b2dd45c2 100644 --- a/embassy-lora/src/lib.rs +++ b/embassy-lora/src/lib.rs | |||
| @@ -18,6 +18,6 @@ pub struct LoraTimer; | |||
| 18 | impl lorawan_device::async_device::radio::Timer for LoraTimer { | 18 | impl lorawan_device::async_device::radio::Timer for LoraTimer { |
| 19 | type DelayFuture<'m> = impl core::future::Future<Output = ()> + 'm; | 19 | type DelayFuture<'m> = impl core::future::Future<Output = ()> + 'm; |
| 20 | fn delay_ms<'m>(&'m mut self, millis: u64) -> Self::DelayFuture<'m> { | 20 | fn delay_ms<'m>(&'m mut self, millis: u64) -> Self::DelayFuture<'m> { |
| 21 | embassy_executor::time::Timer::after(embassy_executor::time::Duration::from_millis(millis)) | 21 | embassy_time::Timer::after(embassy_time::Duration::from_millis(millis)) |
| 22 | } | 22 | } |
| 23 | } | 23 | } |
diff --git a/embassy-lora/src/sx127x/sx127x_lora/mod.rs b/embassy-lora/src/sx127x/sx127x_lora/mod.rs index b3636d097..aacc9da22 100644 --- a/embassy-lora/src/sx127x/sx127x_lora/mod.rs +++ b/embassy-lora/src/sx127x/sx127x_lora/mod.rs | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | #![allow(dead_code)] | 6 | #![allow(dead_code)] |
| 7 | 7 | ||
| 8 | use bit_field::BitField; | 8 | use bit_field::BitField; |
| 9 | use embassy_executor::time::{Duration, Timer}; | 9 | use embassy_time::{Duration, Timer}; |
| 10 | use embedded_hal::digital::v2::OutputPin; | 10 | use embedded_hal::digital::v2::OutputPin; |
| 11 | use embedded_hal_async::spi::SpiBus; | 11 | use embedded_hal_async::spi::SpiBus; |
| 12 | 12 | ||
