Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions esp-wifi/src/wifi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2273,8 +2273,14 @@ impl<'d> WifiController<'d> {
// see https://docs.rs/smoltcp/0.7.1/smoltcp/phy/index.html
#[cfg(feature = "smoltcp")]
impl<MODE: WifiDeviceMode> Device for WifiDevice<'_, MODE> {
type RxToken<'a> = WifiRxToken<MODE> where Self: 'a;
type TxToken<'a> = WifiTxToken<MODE> where Self: 'a;
type RxToken<'a>
= WifiRxToken<MODE>
where
Self: 'a;
type TxToken<'a>
= WifiTxToken<MODE>
where
Self: 'a;

fn receive(
&mut self,
Expand Down Expand Up @@ -2804,8 +2810,14 @@ pub(crate) mod embassy {
}

impl<MODE: WifiDeviceMode> Driver for WifiDevice<'_, MODE> {
type RxToken<'a> = WifiRxToken<MODE> where Self: 'a;
type TxToken<'a> = WifiTxToken<MODE> where Self: 'a;
type RxToken<'a>
= WifiRxToken<MODE>
where
Self: 'a;
type TxToken<'a>
= WifiTxToken<MODE>
where
Self: 'a;

fn receive(
&mut self,
Expand Down