diff --git a/src/device/autoDetect/DeviceScannedComponents.tsx b/src/device/autoDetect/DeviceScannedComponents.tsx
index 18ea15f..e1fc020 100644
--- a/src/device/autoDetect/DeviceScannedComponents.tsx
+++ b/src/device/autoDetect/DeviceScannedComponents.tsx
@@ -203,6 +203,7 @@ export default function DeviceScannedComponents(props: Props){
})
})
}
+ console.log(cloneList)
setComponents(cloneList)
}
@@ -251,7 +252,6 @@ export default function DeviceScannedComponents(props: Props){
Pin Port Sensors
-
{scannedOneWire.map((scan,i) => {
let map = FindAvailablePositions([], device.settings.product).availability.get(quack.AddressType.ADDRESS_TYPE_CONFIGURABLE_PIN_ARRAY)
@@ -265,9 +265,14 @@ export default function DeviceScannedComponents(props: Props){
}
})
return(
-
- Port: {portLabel}
-
+
+
+ Port: {portLabel}
+
+
+
)
})}
diff --git a/src/device/autoDetect/OneWire/PortComponent.tsx b/src/device/autoDetect/OneWire/PortComponent.tsx
index c92dfac..ee2ab3f 100644
--- a/src/device/autoDetect/OneWire/PortComponent.tsx
+++ b/src/device/autoDetect/OneWire/PortComponent.tsx
@@ -1,46 +1,84 @@
-import { Box, MenuItem, TextField } from "@mui/material"
+import { Box, Checkbox, MenuItem, TextField, Tooltip } from "@mui/material"
import { getFriendlyName, getSubtypes, Subtype } from "pbHelpers/ComponentType"
import { quack } from "protobuf-ts/quack"
import React, { useEffect, useState } from "react"
interface Props {
compData: quack.OneWireComponentData
+ componentSelect: (selected: boolean, componentData: quack.OneWireComponentData) => void
}
export default function PortComponent(props: Props){
- const {compData} = props
- const [selectedSubtype, setSelectedSubtype] = useState(-1)
+ const {compData, componentSelect} = props
+ // const [selectedSubtype, setSelectedSubtype] = useState(0)
+ const [subtypeVal, setSubtypeVal] = useState("none")//note that this is the friendly name and not the key or the value because it needs to be different from the other alias options
+ const [subtypeMap, setSubtypeMap] = useState