diff --git a/src/device/DeviceActions.tsx b/src/device/DeviceActions.tsx index adb6556..4bf448e 100644 --- a/src/device/DeviceActions.tsx +++ b/src/device/DeviceActions.tsx @@ -114,7 +114,6 @@ interface Props { preferences: pond.DevicePreferences; isLoading: boolean; toggleNotificationPreference: Function; - scanFunction: () => void } interface DialogState { @@ -147,8 +146,7 @@ export default function DeviceActions(props: Props) { permissions, preferences, isLoading, - toggleNotificationPreference, - scanFunction + toggleNotificationPreference } = props; const classes = useStyles(); const [{ user }] = useGlobalState(); @@ -520,9 +518,6 @@ export default function DeviceActions(props: Props) { const buttons = () => { return ( - { - scanFunction() - }}>0 {showSupport() && navigate("support", { state: {device: device, devicePageData: devicePageData }})}> diff --git a/src/device/autoDetect/ScannedI2C.tsx b/src/device/autoDetect/ScannedI2C.tsx index db5954a..56b571d 100644 --- a/src/device/autoDetect/ScannedI2C.tsx +++ b/src/device/autoDetect/ScannedI2C.tsx @@ -93,6 +93,7 @@ export default function ScannedI2C(props: Props){ return ( {sensorNum && Sensor {sensorNum}} + {types.length > 0 ? + : + Sensor Not Supported By Product + } ) } \ No newline at end of file diff --git a/src/pages/Device.tsx b/src/pages/Device.tsx index 6a769c0..609ecc3 100644 --- a/src/pages/Device.tsx +++ b/src/pages/Device.tsx @@ -471,10 +471,6 @@ export default function DevicePage() { { - //deviceAPI.detectI2C(device.id()).then(resp => {console.log("No errors")}).catch(err => {console.log("error")}) - deviceAPI.listFoundComponents(device.id()).then(resp => console.log(resp)).catch(err => {console.log("errors")}) - }} isPaused={false} isLoading={loading} permissions={permissions}