mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-10-01 06:11:03 +00:00
Make sure we can compile with defmt
(#2126)
* Set DEFMT_LOG in CI * Set DEFMT_LOG in CI * Set DEFMT_LOG in CI * Fix BLE vs DEFMT issue * Fix ESP32 defmt problems in psram.rs * Use `defmt` feature on `bt-hci`
This commit is contained in:
parent
be82a6521a
commit
ddf4ff7e9d
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@ -25,6 +25,7 @@ env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
MSRV: "1.77.0"
|
||||
RUSTDOCFLAGS: -Dwarnings
|
||||
DEFMT_LOG: trace
|
||||
|
||||
# Cancel any currently running workflows from the same PR, branch, or
|
||||
# tag when a new workflow is triggered.
|
||||
|
1
.github/workflows/ci_nightly.yml
vendored
1
.github/workflows/ci_nightly.yml
vendored
@ -9,6 +9,7 @@ env:
|
||||
CARGO_TERM_COLOR: always
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
RUSTDOCFLAGS: -Dwarnings
|
||||
DEFMT_LOG: trace
|
||||
|
||||
jobs:
|
||||
|
||||
|
@ -199,6 +199,7 @@ pub(crate) mod utils {
|
||||
}
|
||||
|
||||
#[derive(PartialEq, Eq, Clone, Copy, Debug)]
|
||||
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
||||
#[allow(unused)]
|
||||
enum PsramCacheSpeed {
|
||||
PsramCacheF80mS40m = 0,
|
||||
@ -220,6 +221,7 @@ pub(crate) mod utils {
|
||||
}
|
||||
|
||||
#[derive(PartialEq, Eq, Copy, Clone, Debug)]
|
||||
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
||||
enum PsramClkMode {
|
||||
PsramClkModeNorm = 0, // Normal SPI mode
|
||||
PsramClkModeDclk = 1, // Two extra clock cycles after CS is set high level
|
||||
|
@ -189,7 +189,7 @@ dhcpv4 = ["wifi", "utils", "smoltcp?/proto-dhcpv4", "smoltcp?/socket-dhcpv4"]
|
||||
wifi-default = ["ipv4", "tcp", "udp", "icmp", "igmp", "dns", "dhcpv4"]
|
||||
|
||||
## Enable support for `defmt`
|
||||
defmt = ["dep:defmt", "smoltcp?/defmt", "esp-hal/defmt"]
|
||||
defmt = ["dep:defmt", "smoltcp?/defmt", "esp-hal/defmt", "bt-hci?/defmt"]
|
||||
|
||||
## Enable support for the `log` crate
|
||||
log = ["dep:log", "esp-hal/log"]
|
||||
|
@ -205,6 +205,7 @@ pub mod asynch {
|
||||
}
|
||||
}
|
||||
warn!("[hci] error parsing packet: {:?}", e);
|
||||
|
||||
Err(BleConnectorError::Unknown)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user