Skip to content

Commit

Permalink
Remove "no token" warnings. (esp-rs#428)
Browse files Browse the repository at this point in the history
They happen often in normal use, such as downloading/uploading a big file
as fast as possible, and they tank performance if logging is enabled.
  • Loading branch information
Dirbaio authored and bjoernQ committed May 23, 2024
1 parent 534dbc8 commit f03e57c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions esp-wifi/src/wifi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1059,7 +1059,6 @@ mod sealed {
if self.can_send() {
Some(WifiTxToken { mode: self })
} else {
warn!("no Tx token available");
None
}
}
Expand All @@ -1070,7 +1069,6 @@ mod sealed {
if !is_empty {
self.tx_token().map(|tx| (WifiRxToken { mode: self }, tx))
} else {
trace!("no Rx token available");
None
}
}
Expand Down

0 comments on commit f03e57c

Please sign in to comment.