-
Notifications
You must be signed in to change notification settings - Fork 3
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
base: main
Are you sure you want to change the base?
Conversation
b195b37
to
00d873b
Compare
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(); |
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove?
There was a problem hiding this comment.
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.
fbb5aad
to
4279f62
Compare
Fixes #121.