-
Notifications
You must be signed in to change notification settings - Fork 8
Implement RTC read operations, improve error messaging in eclib #41
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?
Implement RTC read operations, improve error messaging in eclib #41
Conversation
kurtjd
left a comment
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.
Can the RtcSource trait methods be added to the Source trait? The original idea was the one trait handles interacting with all services. Though you might have other reasons for keeping it separate, not sure.
Yeah, I wanted to get feedback on this - I thought splitting it out into individual traits for each service and then having a single aggregate trait that implements all those other traits might make it easier to tell what belongs to which tab and potentially modularize in future, but I can pretty easily merge it back in if we want to go the single-trait route |
Sounds good to me then, I can see the benefit of that. I'll just submit a PR after this then that splits battery and thermal |
|
d'oh, just as I said that saw you updated the PR |
I can flip it back if we want to go with the traits-per-interface approach - I personally slightly favor the trait-per-interface thing but I don't feel that strongly about it :) |
This reverts commit 3f6716e.
If you want to revert to what you had I'm fine with that :) (though might want to see if any other folks have opinions first) |
Sounds good, pushed out an iteration that flips it back; we'll see what everyone has to say and if we want to go the other route I can flip back again |
kurtjd
left a comment
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.
LGTM as far as the Rust changes go
This change implements read operations for the ACPI time-alarm device / real-time clock.
As part of debugging this change, also fixed a resource leak in eclib and propagated an error code that we were previously dropping.