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 c5eb201
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 16 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",
]
4 changes: 0 additions & 4 deletions firmware/Cargo.lock

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

8 changes: 4 additions & 4 deletions firmware/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,18 @@ git2 = "0.19"

[dependencies]
display-interface = "0.5"
embassy-executor = { version = "0.5", features = ["log"] }
embassy-executor = "0.5"
embassy-futures = "0.1"
embassy-time = { version = "0.3", features = ["generic-queue"] }
embedded-graphics = "0.8"
embedded-hal = "1.0"
embedded-hal-async = "1.0"
embedded-hal-bus = { version = "0.2", features = ["async"] }
esp-backtrace = { version = "0.13", features = ["esp32c3", "custom-halt", "panic-handler", "exception-handler", "println"] }
esp-hal = { version = "0.19", features = ["esp32c3", "async", "log"] }
esp-hal-embassy = { version = "0.2", features = ["esp32c3", "log"] }
esp-hal = { version = "0.19", features = ["esp32c3", "async"] }
esp-hal-embassy = { version = "0.2", features = ["esp32c3"] }
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 c5eb201

Please sign in to comment.