-
-
Notifications
You must be signed in to change notification settings - Fork 40.4k
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
Partially port GET_SLAVE_STATUS from helix to split_common #7732
Conversation
|
Partially port GET_SLAVE_STATUS from helix to split_common
Partially port GET_SLAVE_STATUS from helix to split_common
|
||
static uint8_t s_last_slave_buffer_change_count = 0; | ||
if (soft_serial_transaction(GET_SLAVE_STATUS) == TRANSACTION_END && slave_buffer_change_count != s_last_slave_buffer_change_count) { | ||
printf("matrix sync needed:%u:%u\n", slave_buffer_change_count, s_last_slave_buffer_change_count); |
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.
Lets remove the printf as it's causing CI failures.
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.
Also, dprintf would work better here, I think
I guess we could get this merged into |
Description
To help with the slower scan rates on the current arm_split branch, this PR partially ports some of the helix code to split_common. GET_SLAVE_STATUS aims to quickly query the slave side if anything has changed, before requesting the full slave side matrix. My limited testing gives about a +50% increase to scan rate.
Current scan rates
before
32u4 -> 1435
f303 -> 859
after
32u4 -> 2066
f303 -> 1321
In my limited testing with mashing keys, I have been unable to get f303 with GET_SLAVE_STATUS to slow down below what it was before. (Speedup might change for boards not ortho_4x12)
Types of Changes
Checklist