Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context: With recent updates to Rust’s embedded libraries, compatibility issues arose due to older versions of embedded-hal and associated dependencies. This refactor updates the project to utilize the latest libraries, ensuring both compatibility and enhanced functionality.
Key Refactoring Points:
This update aligns the project with the latest embedded-hal standards, enhancing future compatibility and maintaining consistency with the broader embedded Rust ecosystem.
use embedded_hal_nb::nb;
use embedded_hal_nb::serial::{Error as SerialError, ErrorType, Read, Write};
use embedded_io::{Read as EmbeddedIoRead, Write as EmbeddedIoWrite};
This change improves the handling of memory addresses, ensuring a more robust and maintainable codebase, especially in the context of embedded programming where direct memory manipulation is common.
These updates ensure compatibility with recent Rust releases and align with the latest improvements in the ecosystem.