Skip to content

Remove direct token accessor functions. #164

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Remove direct token accessor functions. #164

wants to merge 1 commit into from

Conversation

daym
Copy link
Collaborator

@daym daym commented May 8, 2025

Fixes #121.

@daym daym requested a review from luqmana May 8, 2025 19:20
@daym daym requested a review from dancrossnyc May 8, 2025 19:35
@daym daym force-pushed the issue-121 branch 2 times, most recently from b195b37 to 00d873b Compare May 8, 2025 19:54
src/tests.rs Outdated
let tokens =
apcb.tokens(0, BoardInstances::from_instance(0).unwrap()).unwrap();
assert!(tokens.abl_serial_baud_rate().unwrap() == BaudRate::_4800Baud);
// let value = tokens.get(TokenEntryId::from_u16(entry_id).unwrap(), ByteToken::AblSerialBaudRate as u32).unwrap();
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove?

src/tests.rs Outdated
assert!(tokens.abl_serial_baud_rate().unwrap() == BaudRate::_4800Baud);
tokens.set_abl_serial_baud_rate(BaudRate::_9600Baud).unwrap();
assert!(tokens.abl_serial_baud_rate().unwrap() == BaudRate::_9600Baud);
//let value = tokens.get(TokenEntryId::from_u16(entry_id).unwrap(), ByteToken::AblSerialBaudRate as u32).unwrap();
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove?

Copy link
Collaborator Author

@daym daym May 8, 2025

Choose a reason for hiding this comment

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

Sure. I just wanted to show to that the interface isn't the same at all now.

Also, the interface type safety is lower now, except for the serde interface.

@daym daym force-pushed the issue-121 branch 3 times, most recently from fbb5aad to 4279f62 Compare May 8, 2025 22:22
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.

Better handle token datatype changes
2 participants