-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
More commands #4
Conversation
beb69e6
to
f7e4bae
Compare
ee3e0e6
to
64d21da
Compare
Looking good so far, let me know when you think the PR is ready for merge. Unsure if you want to add more commands or not. |
Includes a big change that needs a fd to be provided to all ec command functions
Made big changes to how the ec command function works to allow different input and output sizes at runtime instead of hard-coding max sizes. Initializes the minimum amount of memory necessary for an ec command.
This command can only be run once per reboot (I'm pretty sure) so it can be hard to debug. Luckily it worked 1st try for me.
95d5fef
to
1d1d30a
Compare
The same EC command is used for changing the fp mode and also just getting the fp mode.
The function can wait for any event and detect the type of the event. It has in depth Rust-safe types for the fingerprint events.
Also includes a fix for downloading templates
b60b361
to
6da00c5
Compare
@lleyton I'm done adding more commands. I think this PR is ready to merge. |
Added an async wait_event function, added get encryption status function, made some more functions use generic trait for file.
Thanks, I'll review it soon. Might be a bit, since I'm still OOO |
Particularly, the InterfaceReady event is useful for knowing when the FPMCU was turned on.
a896e07
to
94f055f
Compare
pub fn ec_cmd_set_fan_target_rpm( | ||
file: &mut File, | ||
rpm: u32, | ||
fan_index: Option<u8>, | ||
) -> EcCmdResult<()> { |
Check warning
Code scanning / clippy
this function depends on never type fallback being () Warning
use crate::ec_command::{ec_command_bytemuck, ec_command_with_dynamic_output_size}; | ||
use crate::EcCmdResult; | ||
|
||
pub fn console(file: &mut File, protocol_info: &EcResponseGetProtocolInfo) -> EcCmdResult<String> { |
Check warning
Code scanning / clippy
this function depends on never type fallback being () Warning
6facb3e
to
e497559
Compare
Sorry, forgot about this. Looks good! Feel free to make more PRs (and please ping me on Discord or Matrix if you need my attention.) |
I'll be adding more commands to this PR, but for now the board version command is ready to merge.
Fixes #1