Skip VW query on STAR channels with firmware <= 2015 (fixes #1004)#1005
Merged
rickwierenga merged 2 commits intomainfrom Apr 22, 2026
Merged
Skip VW query on STAR channels with firmware <= 2015 (fixes #1004)#1005rickwierenga merged 2 commits intomainfrom
rickwierenga merged 2 commits intomainfrom
Conversation
The unconditional VW query from #991 fails on older STARlets (e.g. April 2015 firmware) with er30 "Unknown command", breaking lh.setup(). Probe channel-0 firmware year first: leave _pip_channel_information as None when unsupported, otherwise populate the full per-channel list. Fixes #1004. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
|
Still errs for me: |
Member
Author
|
what is |
Contributor
C0RFid0029er00/00rf7.2S D 2015-04-01 |
Member
Author
|
ah I see. Yes the PIP channels have their own chips and firmware versions which are different from C0 (the master module). Same for 96 head and autoload and iswap etc. they all have their own version |
Bumps the VW cutoff from 2015 to 2016 and fails fast inside the per-channel helper so the command is never sent on unsupported firmware. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Member
Author
|
does this work @har1eyk |
Contributor
Success! Many thanks. |
Member
Author
|
thanks for report and testing! |
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.
Summary
lh.setup()regressed in Add pip channel hardware configuration query (VW command) #991 for STARlets running April 2015 (or older) firmware: the unconditionalVWpipetting-channel query returnser30 Unknown commandand aborts setup (issue STARlet older firmware fails setup after VW query added in c4fe7e6 (#991) #1004).request_pip_channel_versionbefore issuingVW. If the year is<= 2015, leave_pip_channel_informationasNone; otherwise populate it for every channel. The cached list is therefore eitherNoneor fully populated — never empty._pip_channel_informationasOptional[List[PipChannelInformation]]with a default ofNoneto reflect the new invariant.Fixes #1004.
Test plan
lh.setup(skip_autoload=True)succeeds on a STARlet with April 2015 firmware (noVWsent,_pip_channel_information is None)._pip_channel_informationis a list of lengthnum_channelsafter setup.🤖 Generated with Claude Code