got rid of scanned logs
This commit is contained in:
parent
487afc6464
commit
d124db62e0
1 changed files with 2 additions and 5 deletions
|
|
@ -75,7 +75,6 @@ export default function DeviceScannedComponents(props: Props){
|
||||||
let expanders: quack.AddressData[] = []
|
let expanders: quack.AddressData[] = []
|
||||||
//filter the address data
|
//filter the address data
|
||||||
let addr = scannedI2C?.settings?.foundAddresses
|
let addr = scannedI2C?.settings?.foundAddresses
|
||||||
console.log(addr)
|
|
||||||
if(addr){
|
if(addr){
|
||||||
addr.forEach(addrData => {
|
addr.forEach(addrData => {
|
||||||
if(!i2cBlacklistAddresses.includes(addrData.address)){
|
if(!i2cBlacklistAddresses.includes(addrData.address)){
|
||||||
|
|
@ -87,7 +86,6 @@ export default function DeviceScannedComponents(props: Props){
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
console.log(valid)
|
|
||||||
setExpanderAddresses(expanders)
|
setExpanderAddresses(expanders)
|
||||||
setValidI2CComponentAddresses(valid)
|
setValidI2CComponentAddresses(valid)
|
||||||
},[scannedI2C])
|
},[scannedI2C])
|
||||||
|
|
@ -213,14 +211,13 @@ export default function DeviceScannedComponents(props: Props){
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
console.log(cloneList)
|
|
||||||
setComponents(cloneList)
|
setComponents(cloneList)
|
||||||
}
|
}
|
||||||
|
|
||||||
const removeScan = (key: string, type: pond.ObjectType) => {
|
const removeScan = (key: string, type: pond.ObjectType) => {
|
||||||
deviceAPI.removeFoundComponents(device.settings.deviceId, key, type)
|
deviceAPI.removeFoundComponents(device.settings.deviceId, key, type)
|
||||||
.then(resp => {
|
.then(resp => {
|
||||||
console.log("Cleared this scan")
|
// console.log("Cleared this scan")
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
console.log("There was a problem clearing this scan")
|
console.log("There was a problem clearing this scan")
|
||||||
})
|
})
|
||||||
|
|
@ -229,7 +226,7 @@ export default function DeviceScannedComponents(props: Props){
|
||||||
const removeAllScans = () => {
|
const removeAllScans = () => {
|
||||||
deviceAPI.removeAllFoundComponents(device.settings.deviceId)
|
deviceAPI.removeAllFoundComponents(device.settings.deviceId)
|
||||||
.then(resp => {
|
.then(resp => {
|
||||||
console.log("Cleared all scans")
|
// console.log("Cleared all scans")
|
||||||
refreshCallback()
|
refreshCallback()
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
console.log("There was a problem clearing scans")
|
console.log("There was a problem clearing scans")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue