changed up the scan dispaly to show expanders properly rather than just as another sensor with no expansion line, and added the lines to the port info in the component cards

This commit is contained in:
csawatzky 2026-05-14 13:32:53 -06:00
parent 6565b854b6
commit 0910dc44cf
4 changed files with 86 additions and 22 deletions

View file

@ -190,7 +190,18 @@ export default function ComponentCard(props: Props) {
cableID = "Cable: " + (component.settings.addressType - 8);
}
return port + " " + cableID;
} else {
} else if (component.settings.addressType === quack.AddressType.ADDRESS_TYPE_I2C) {
let description = ""
let type = getFriendlyAddressTypeName(component.settings.addressType);
description = type
if(component.settings.expansionLine){
description = description + ": Exp Line " + component.settings.expansionLine
}
if(component.settings.muxLine){
description = description + " ,Mux Line " + component.settings.muxLine
}
return description
}else{
return getFriendlyAddressTypeName(component.settings.addressType);
}
};