Fixup #14531: Make Albatross again the last driver in detection order#14686
Merged
Conversation
Contributor
|
In the worst case it takes time to detect Albatross:
From constants.py:
I think it's better to detect Albatross after other devices with same PID and VID. |
Collaborator
Author
|
Thanks for the quick clarification. Let's go ahead with this then and restore the old behavior. |
michaelDCurran
approved these changes
Mar 1, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Link to issue number:
None
Summary of the issue:
As part of #14531, I ordered display order in bdDetect alphabetically. However, it seems that querying Albatross first has a major negative impact on detecting other displays using the same Serial to USB converter (see #13045)
Description of user facing changes
Handy Tech displays such as the Modular Evolution instantly auto detect again.
Description of development approach
Restored the order, Albatross is last in the dictionary again. I'm pretty unhappy with how these displays work, but it looks like it's a design thing in the displays itself.
Testing strategy:
Tested that Handy Tech displays are detected immediately.
Known issues with pull request:
No changes to the albatross driver. @burmancomp Would it be possible to provide a follow up for #13045 that decreases MAX_INIT_RETRIES or changes SLEEP_TIMEOUT to a lower value? This driver takes around 8 seconds to find out whether a display is connected or not if it doesn't receive the necessary packets. I assume as the display sends lots of these packets initially, it should be possible to find out whether initialisation worked after at most 5 attempts.
Change log entries:
None needed
Code Review Checklist: