Fix the sense of the --no-reset flag
The argument was set to 'SetFalse', so when present was setting the bool to false, but the test was also negated, so reset was opposite of desired.
This commit is contained in:
@ -178,7 +178,7 @@ struct WriteArgs {
|
||||
size: Option<u32>,
|
||||
|
||||
/// Don't reset the microcontroller after writing
|
||||
#[arg(short, long, action=ArgAction::SetFalse)]
|
||||
#[arg(short, long)]
|
||||
no_reset: bool,
|
||||
|
||||
/// Erase method to use before writing
|
||||
|
Reference in New Issue
Block a user