Merge branch 'i2c_detect' into dev_environment
This commit is contained in:
commit
ad0b589bd9
1 changed files with 3 additions and 2 deletions
|
|
@ -67,10 +67,11 @@ export default function DeviceScannedComponents(props: Props){
|
|||
//filter the address data
|
||||
scannedI2C?.settings?.foundAddresses.forEach(addrData => {
|
||||
if(!i2cBlacklistAddresses.includes(addrData.address)){
|
||||
valid.push(addrData)
|
||||
if(!(addrData.address === 0x71 && addrData.expansionLine === undefined)){
|
||||
valid.push(addrData)
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(valid)
|
||||
setValidComponentAddresses(valid)
|
||||
},[scannedI2C])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue