Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Autodetect defmt usage #105

Merged
merged 1 commit into from
Nov 17, 2020
Merged

Autodetect defmt usage #105

merged 1 commit into from
Nov 17, 2020

Conversation

jonas-schievink
Copy link
Contributor

Closes #102

Copy link
Member

@japaric japaric left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@japaric japaric merged commit c732f9b into main Nov 17, 2020
@japaric japaric deleted the magic branch November 17, 2020 09:35
bors bot added a commit that referenced this pull request Jan 7, 2021
129: reject use of defmt and --no-flash (again) r=japaric a=japaric

before PR #105 using defmt required the `--defmt` flag. At that time it was not possible to use the `--defmt` and `--no-flash` flags together. The rationale for that restriction is that without it `cargo run` can invoke `probe-run` with a newer version of the ELF different from the ELF that was last flashed on the device and that can result in log messages that make no sense and/or decoder errors.

After PR 105 landed it unintentionally became possible to use defmt with --no-flash due to the auto-detection (auto-enable) mechanism. This PR corrects that and makes the use of `--no-flash` flag and defmt an error again.

Co-authored-by: Jorge Aparicio <jorge.aparicio@ferrous-systems.com>
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove --defmt flag in favor of magic
2 participants