Skip to content

v0.7.2: int_rounded() for DecodedSignalValue#30

Merged
LelsersLasers merged 4 commits into
mainfrom
millan/get_int
May 27, 2026
Merged

v0.7.2: int_rounded() for DecodedSignalValue#30
LelsersLasers merged 4 commits into
mainfrom
millan/get_int

Conversation

@LelsersLasers

Copy link
Copy Markdown
Member

Returns the raw integer value of the signal if available, or the physical value rounded to the nearest integer if not.

Returns the raw integer value of the signal if available, or the physical value rounded to the nearest integer if not.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds a convenience accessor on DecodedSignalValue to retrieve an integer representation (preferring the decoded raw integer when present), and bumps the crate version/docs to 0.7.2.

Changes:

  • Add DecodedSignalValue::get_int() to return raw when available, otherwise a rounded integer derived from physical.
  • Bump crate version to 0.7.2 (Cargo.toml / Cargo.lock).
  • Update README installation snippet to can_decode = "0.7.2".

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
src/lib.rs Adds DecodedSignalValue::get_int() public API.
README.md Updates dependency version example to 0.7.2.
Cargo.toml Bumps crate version to 0.7.2.
Cargo.lock Updates locked version for can_decode to 0.7.2.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/lib.rs Outdated
Comment thread src/lib.rs Outdated
@LelsersLasers LelsersLasers changed the title v0.7.2: get_int for DecodedSignalValue v0.7.2: int_rounded() for DecodedSignalValue May 27, 2026
@LelsersLasers LelsersLasers marked this pull request as ready for review May 27, 2026 21:38
@LelsersLasers LelsersLasers requested a review from irvingywang May 27, 2026 21:38
@LelsersLasers LelsersLasers merged commit 17a3055 into main May 27, 2026
1 check passed
@LelsersLasers LelsersLasers deleted the millan/get_int branch May 27, 2026 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants