added to the filter to remove any expander entries when there is no expander line
This commit is contained in:
parent
45ae0817a3
commit
a3a8b95277
1 changed files with 3 additions and 2 deletions
|
|
@ -67,10 +67,11 @@ export default function DeviceScannedComponents(props: Props){
|
||||||
//filter the address data
|
//filter the address data
|
||||||
scannedI2C?.settings?.foundAddresses.forEach(addrData => {
|
scannedI2C?.settings?.foundAddresses.forEach(addrData => {
|
||||||
if(!i2cBlacklistAddresses.includes(addrData.address)){
|
if(!i2cBlacklistAddresses.includes(addrData.address)){
|
||||||
|
if(!(addrData.address === 0x71 && addrData.expansionLine === undefined)){
|
||||||
valid.push(addrData)
|
valid.push(addrData)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
console.log(valid)
|
|
||||||
setValidComponentAddresses(valid)
|
setValidComponentAddresses(valid)
|
||||||
},[scannedI2C])
|
},[scannedI2C])
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue