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

Commit

Permalink
Merge #349
Browse files Browse the repository at this point in the history
349: Add PROBE_RUN_SPEED env variable r=Urhengulas a=haata

- Useful when wanting to set the SWD speed in your .cargo/config.toml

Co-authored-by: Jacob Alexander <[email protected]>
  • Loading branch information
bors[bot] and haata authored Aug 29, 2022
2 parents b22f2ed + b10da93 commit 5efd0a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p

## [Unreleased]

- [#349] Add `PROBE_RUN_SPEED` env variable
- [#345] Update dev-dependency `serial_test`
- [#344] Replace `pub(crate)` with `pub`
- [#343] Mark `v0.3.4` as released in `CHANGELOG.md`
Expand Down
2 changes: 1 addition & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub struct Opts {
pub probe: Option<String>,

/// The probe clock frequency in kHz
#[structopt(long)]
#[structopt(long, env = "PROBE_RUN_SPEED")]
pub speed: Option<u32>,

/// Path to an ELF firmware file.
Expand Down

0 comments on commit 5efd0a8

Please sign in to comment.