added to the filter to remove any expander entries when there is no expander line

This commit is contained in:
csawatzky 2025-07-28 16:37:11 -06:00
parent 45ae0817a3
commit a3a8b95277

View file

@ -67,10 +67,11 @@ export default function DeviceScannedComponents(props: Props){
//filter the address data
scannedI2C?.settings?.foundAddresses.forEach(addrData => {
if(!i2cBlacklistAddresses.includes(addrData.address)){
if(!(addrData.address === 0x71 && addrData.expansionLine === undefined)){
valid.push(addrData)
}
}
})
console.log(valid)
setValidComponentAddresses(valid)
},[scannedI2C])