A wiring that never looks at the expander names the family
A profile that drives the Cap without its expander says nothing about which Cap it is. The node then found no expander because it never looked, and the model fell back to the name of the newer board. An owner of the older Cap who wrote such a profile read "Cap LoRa-1262". The parent now sends the name of the family in that case, which is what the device screen shows before anything is connected. It is the most that is true when nothing looked. The About page names both Caps, because MeshTerm drives both now. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fca92541f6
commit
ae83c6177f
3 files changed
+9
-1
No files matched your search
@@ -295,6 +295,8 @@ def test_the_node_is_given_the_model_of_each_revision(cardputer: Path) -> None:
|
||||
tweaked = replace(spiradio.CARDPUTER_ZERO_CAP, use_dio3_tcxo=False)
|
||||
assert spiradio.board_models(tweaked) == ("Cap LoRa-1262", "Cap LoRa868"), "a profile of it"
|
||||
assert spiradio.board_models(SpiWiring()) == ("", "") # the AIO: no name to give
|
||||
blind = replace(spiradio.CARDPUTER_ZERO_CAP, pi4io_bus=-1)
|
||||
assert spiradio.board_models(blind) == ("Cap LoRa", ""), "a wiring that never looks cannot say"
|
||||
cardputer.rmdir()
|
||||
assert spiradio.board_models(spiradio.CARDPUTER_ZERO_CAP) == ("", "") # another Pi
|
||||
|
||||
|
||||
Reference in new issue
Block a user