Skip to content
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

Add serde derives to flash params #528

Merged
merged 1 commit into from
Dec 12, 2023
Merged

Conversation

bugadani
Copy link
Contributor

This may be useful for probe-rs (example where I would have used it)

Copy link
Member

@SergioGasquez SergioGasquez left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks

@SergioGasquez SergioGasquez merged commit ba49cbb into esp-rs:main Dec 12, 2023
19 checks passed
@bugadani bugadani deleted the serde branch December 12, 2023 15:47
simpkins added a commit to simpkins/espflash that referenced this pull request Apr 23, 2024
Rename the FlashFrequency, FlashMode, and FlashSize enum variants to
more user-friendly names.

Note that will break attempting to deserialize these values that were
serialized by old versions of the code.  However, I did not see anywhere
currently using serialization for this field.  The serialization support
was added in esp-rs#528, for probe-rs/probe-rs#1952,
but as best I can tell it doesn't look like this functionality ended up
being used in the probe-rs code.
SergioGasquez pushed a commit that referenced this pull request May 3, 2024
* Support storing flash settings in the config file

Allow loading the flash frequency, size, and mode from the config file.

* Apply serde renames to the flash frequencies and sizes

Rename the FlashFrequency, FlashMode, and FlashSize enum variants to
more user-friendly names.

Note that will break attempting to deserialize these values that were
serialized by old versions of the code.  However, I did not see anywhere
currently using serialization for this field.  The serialization support
was added in #528, for probe-rs/probe-rs#1952,
but as best I can tell it doesn't look like this functionality ended up
being used in the probe-rs code.

* Document the `[flash]` config section in the crate README.md files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants