From b10da93d65e93eab01a54b27d85071110dd7a411 Mon Sep 17 00:00:00 2001 From: Jacob Alexander <haata@kiibohd.com> Date: Wed, 24 Aug 2022 08:35:53 -0700 Subject: [PATCH] Add PROBE_RUN_SPEED env variable - Useful when wanting to set the SWD speed in your .cargo/config.toml --- CHANGELOG.md | 1 + src/cli.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b605e23c..e80ab1dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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` diff --git a/src/cli.rs b/src/cli.rs index 94211f1f..2f5a7b3c 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -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.