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

Consolidate state structure to an enum. Move message decleration of r… #8

Merged
merged 3 commits into from
Jan 10, 2025

Conversation

NoahSprenger
Copy link
Contributor

This pull request includes several changes to the project, focusing on dependency updates, code refactoring, and structural changes. The most important changes include updating the dependencies in Cargo.toml, modifying the Common enum to use a new reset reason type, and removing the ResetReason enum from sensor.rs.

Dependency updates:

  • Cargo.toml: Added stm32h7xx-hal dependency with specific features and updated the std feature to include stm32h7xx-hal/arbitrary. [1] [2]

Code refactoring:

  • src/lib.rs: Modified the Common enum to use stm32h7xx_hal::rcc::ResetReason instead of sensor::ResetReason.
  • src/sensor.rs: Removed the ResetReason enum, which included various reset reasons and their descriptions.

Structural changes:

  • src/state.rs: Commented out the State struct and its implementation, and renamed StateData to State. [1] [2]…eset reason back to stm32h7xx-hal crate.

@NoahSprenger NoahSprenger merged commit 3ac02d0 into master Jan 10, 2025
2 checks passed
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.

1 participant