-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve monitoring #737
Improve monitoring #737
Conversation
e857dd4
to
86ec759
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few open questions/notes:
espflash/src/cli/mod.rs
Outdated
#[non_exhaustive] | ||
pub struct MonitorConfigArgs { | ||
/// Baud rate at which to communicate with target device | ||
#[arg(short = 'r', long, env = "MONITOR_BAUD", default_value = "115_200", value_parser = parse_uint32)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure about the name and short, we use baud
in ConnectArgs to set the baudrate at which we connect to the target. We could modify any of the two
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have an issue (or maybe multiple) for this type of change, so we can just punt it off to another PR for now.
dd4bd30
to
cd21e74
Compare
#[clap(flatten)] | ||
pub monitor_args: MonitorConfigArgs, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure how to make this require monitor
(I coulndt get requires
to work as it flatten
), but it doesnt make sense that an user could set the monitor_args
and not set monitor
. I can only think of a check in the flash
method that checks this and throws an error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm yeah not sure how much we can really do about this. There are unfortunately some issues with using flatten
, but it's a bit of a necessity with how things are currently structured. For now it's probably fine, we can merge as-is and open an issue to investigate this further.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue created: #764
70c7ea4
to
a52fa28
Compare
If #754 gets merged before this, we should add a test for |
Will quickly add it here! Update: Added! |
a52fa28
to
4d7d744
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, not sure what we want to do about open discussion threads.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
21bf76c
to
6fb20aa
Compare
b0f0432
to
10d679f
Compare
flash
--no-reset
flag