You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The project's code for now is just embassy hello world code from esp-hal's examples with esp-log's printlns replaced with defmt functions. The project build fine when I don't enable "defmt" feature for esp-wifi, but when I try to build the code with "defmt" feature enabled for esp-wifi, I get this error:
Compiling esp-wifi v0.9.1 (https://github.com/esp-rs/esp-hal?rev=be82a6521a5859129ca4f98e54e4d4d6cedffe76#be82a652)
error[E0277]: the trait bound `FromHciBytesError: Format` is not satisfied
--> /home/okhsunrog/.cargo/git/checkouts/esp-hal-42ec44e8c6943228/be82a65/esp-wifi/src/fmt.rs:151:13
|
151 | ::defmt::warn!($s $(, $x)*);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Format` is not implemented for `FromHciBytesError`
|
::: /home/okhsunrog/.cargo/git/checkouts/esp-hal-42ec44e8c6943228/be82a65/esp-wifi/src/ble/controller/mod.rs:207:17
|
207 | warn!("[hci] error parsing packet: {:?}", e);
| -------------------------------------------- in this macro invocation
|
= help: the following other types implement trait `Format`:
&T
&mut T
()
(T0, T1)
(T0, T1, T2)
(T0, T1, T2, T3)
(T0, T1, T2, T3, T4)
(T0, T1, T2, T3, T4, T5)
and 208 others
note: required by a bound in `defmt::export::fmt`
--> /home/okhsunrog/.cargo/registry/src/index.crates.io-6f17d22bba15001f/defmt-0.3.8/src/export/mod.rs:137:15
|
137 | pub fn fmt<T: Format + ?Sized>(f: &T) {
| ^^^^^^ required by this bound in `fmt`
= note: this error originates in the macro `::defmt::warn` which comes from the expansion of the macro `warn` (in Nightly builds, run with -Z macro-backtrace for more info)
For more information about this error, try `rustc --explain E0277`.
error: could not compile `esp-wifi` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
The text was updated successfully, but these errors were encountered:
Here's my Cargo.toml for esp32-c3, I'm using defmt for logging:
The project's code for now is just embassy hello world code from esp-hal's examples with esp-log's printlns replaced with defmt functions. The project build fine when I don't enable "defmt" feature for esp-wifi, but when I try to build the code with "defmt" feature enabled for esp-wifi, I get this error:
The text was updated successfully, but these errors were encountered: