Skip to content

Commit

Permalink
Disable noisy esp-wifi logging
Browse files Browse the repository at this point in the history
  • Loading branch information
zargony committed Aug 22, 2024
1 parent 96018b5 commit c681e5b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
16 changes: 8 additions & 8 deletions firmware/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
[env]
# Log filters for esp-println to apply at runtime. Also, a feature of the log crate strips all
# logging above info level from release builds at compile time.
ESP_LOGLEVEL="debug"
ESP_LOGTARGETS="touch_n_drink"
ESP_LOGLEVEL = "debug"
#ESP_LOGTARGETS = "touch_n_drink"

[build]
target = "riscv32imc-unknown-none-elf"

[target.'cfg(any(target_arch = "riscv32", target_arch = "xtensa"))']
runner = "espflash flash --monitor"
rustflags = [
# Required by esp-backtrace, but may negatively impact code performance
"-C", "force-frame-pointers",
# Required by esp-hal
"-C", "link-arg=-Tlinkall.x",
# Required by esp-wifi
"-C", "link-arg=-Trom_functions.x",
# Required by esp-backtrace, but may negatively impact code performance
"-C", "force-frame-pointers",
# Required by esp-hal
"-C", "link-arg=-Tlinkall.x",
# Required by esp-wifi
"-C", "link-arg=-Trom_functions.x",
]
1 change: 0 additions & 1 deletion firmware/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion firmware/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ esp-backtrace = { version = "0.13", features = ["esp32c3", "custom-halt", "panic
esp-hal = { version = "0.19", features = ["esp32c3", "async", "log"] }
esp-hal-embassy = { version = "0.2", features = ["esp32c3", "log"] }
esp-println = { version = "0.10", features = ["esp32c3", "log"] }
esp-wifi = { version = "0.7", features = ["esp32c3", "async", "log", "phy-enable-usb", "wifi"] }
esp-wifi = { version = "0.7", default-features = false, features = ["esp32c3", "async", "phy-enable-usb", "wifi"] }
log = { version = "0.4", features = ["release_max_level_info"] }
pn532 = "0.4"
static_cell = "2.1"
Expand Down

0 comments on commit c681e5b

Please sign in to comment.