-
Notifications
You must be signed in to change notification settings - Fork 43
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
Resume dim for non i2cs devices #423
Conversation
Awesome, I appreciate you making that a separate method so that it can be reused for other flags. |
My only hesitation here is the addition of the I understand the benefit of this, making things "just work" for users. The concern that I have always had, is as we chain more commands to I think this is probably a good addition, but I want to think about it for a minute. |
that makes sense - I added it mainly because i had a few devices that didn't have that set initially, and without that the devices likely wouldn't respond correctly. An alternative would be to add some additional handling so that if we don't know the engine and we received a NACK (invalid checksum) in response to a set_operating_flags message, we either update the engine to i2cs and retry; or run my main hesitation with just setting the engine to i2cs is that's a fairly large assumption that may break at some point. that might also have the potential for infinite loops if (for some reason), we are never able to set the engine? |
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.
I tested out refresh
with the get_engine
command on a few i2cs devices and some old i1 devices and it all works fine. We already do a model request, so it likely makes sense to get the engine version too.
A few small additions, but I am otherwise happy to merge this.
Co-authored-by: Kevin Robert Keegan <[email protected]>
Co-authored-by: Kevin Robert Keegan <[email protected]>
those changed looked good to me, so just went ahead and commited them. thanks for the reviews and the help with testing this stuff out! |
Proposed change
Enables the resume_dim flag for non i2cs devices
Additional information
Checklist
I only have i2cs devices, so will need help verifying this works properly for non i2cs devices :-)