Skip to content

Commit

Permalink
Print esp-println generated defmt messages (esp-rs#466)
Browse files Browse the repository at this point in the history
* Print defmt frames output by esp-println

* Add changelog entry

* Display log level

* Bump MSRV to 1.70

* Refactor for opt-in defmt

* Make defmt a default feature

* Update CHANGELOG.md

Co-authored-by: Sergio Gasquez Arcos <sergio.gasquez@gmail.com>

* Fix panic on frame containing multiple lines

* Fix panic due to newline normalization

* Don't enable defmt by default

---------

Co-authored-by: Sergio Gasquez Arcos <sergio.gasquez@gmail.com>
  • Loading branch information
bugadani and SergioGasquez committed Oct 11, 2023
1 parent 411c395 commit 8304f2c
Show file tree
Hide file tree
Showing 7 changed files with 531 additions and 234 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Add publish to Crates.io step in the release workflow. (#486)

- Read esp-println generated defmt messages (#466)

### Fixed

### Changed
Expand Down
98 changes: 93 additions & 5 deletions Cargo.lock

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

8 changes: 7 additions & 1 deletion espflash/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ clap = { version = "4.4.6", features = ["derive", "env", "wrap_help"], optional
clap_complete = { version = "4.4.3", optional = true }
comfy-table = { version = "7.0.1", optional = true }
crossterm = { version = "0.25.0", optional = true } # 0.26.x causes issues on Windows
ctrlc = { version = "3.4.1", optional = true }
ctrlc = { version = "3.4.0", optional = true }
defmt-decoder = { version = "=0.3.8", features = ["unstable"], optional = true }
defmt-parser = { version = "=0.3.3", features = ["unstable"], optional = true }
dialoguer = { version = "0.10.4", optional = true }
directories = { version = "5.0.1", optional = true }
env_logger = { version = "0.10.0", optional = true }
Expand Down Expand Up @@ -82,4 +84,8 @@ cli = [
"dep:regex",
"dep:update-informer",
]
defmt = [
"dep:defmt-decoder",
"dep:defmt-parser",
]
raspberry = ["dep:rppal"]
Loading

0 comments on commit 8304f2c

Please sign in to comment.