Skip to content

Commit 1dfe0a1

Browse files
Print esp-println generated defmt messages (#466)
* 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 <[email protected]> * 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 <[email protected]>
1 parent f76d2cb commit 1dfe0a1

File tree

7 files changed

+531
-234
lines changed

7 files changed

+531
-234
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111

12+
- Read esp-println generated defmt messages (#466)
13+
1214
### Fixed
1315

1416
### Changed

Cargo.lock

Lines changed: 93 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

espflash/Cargo.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ clap = { version = "4.4.6", features = ["derive", "env", "wrap_help"], optional
3939
clap_complete = { version = "4.4.3", optional = true }
4040
comfy-table = { version = "7.0.1", optional = true }
4141
crossterm = { version = "0.25.0", optional = true } # 0.26.x causes issues on Windows
42-
ctrlc = { version = "3.4.1", optional = true }
42+
ctrlc = { version = "3.4.0", optional = true }
43+
defmt-decoder = { version = "=0.3.8", features = ["unstable"], optional = true }
44+
defmt-parser = { version = "=0.3.3", features = ["unstable"], optional = true }
4345
dialoguer = { version = "0.10.4", optional = true }
4446
directories = { version = "5.0.1", optional = true }
4547
env_logger = { version = "0.10.0", optional = true }
@@ -82,4 +84,8 @@ cli = [
8284
"dep:regex",
8385
"dep:update-informer",
8486
]
87+
defmt = [
88+
"dep:defmt-decoder",
89+
"dep:defmt-parser",
90+
]
8591
raspberry = ["dep:rppal"]

0 commit comments

Comments
 (0)