added the expansion line to the card for scanned components
This commit is contained in:
parent
c263f16346
commit
edb162614c
3 changed files with 8 additions and 7 deletions
|
|
@ -40,7 +40,7 @@ export default function DeviceScannedComponents(props: Props){
|
||||||
const [openDialog, setOpenDialog] = useState(false);
|
const [openDialog, setOpenDialog] = useState(false);
|
||||||
|
|
||||||
useEffect(()=>{
|
useEffect(()=>{
|
||||||
console.log(scannedComponents)
|
//console.log(scannedComponents)
|
||||||
if (scannedComponents.i2c) setScannedI2C(scannedComponents.i2c)
|
if (scannedComponents.i2c) setScannedI2C(scannedComponents.i2c)
|
||||||
//makes the array empty for testing
|
//makes the array empty for testing
|
||||||
// if (scannedComponents.i2c) {
|
// if (scannedComponents.i2c) {
|
||||||
|
|
|
||||||
|
|
@ -107,6 +107,7 @@ export default function ScannedI2C(props: Props){
|
||||||
return (
|
return (
|
||||||
<Box sx={{marginY: 1}}>
|
<Box sx={{marginY: 1}}>
|
||||||
{sensorNum && <Typography>Sensor {sensorNum}</Typography>}
|
{sensorNum && <Typography>Sensor {sensorNum}</Typography>}
|
||||||
|
<Typography variant="caption">{addressData.expansionLine !== 0 && "Expansion Line: " + addressData.expansionLine}</Typography>
|
||||||
{types.length > 0 ?
|
{types.length > 0 ?
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
<Grid2 container direction="row" alignItems="center" justifyContent="space-between">
|
<Grid2 container direction="row" alignItems="center" justifyContent="space-between">
|
||||||
|
|
@ -145,7 +146,7 @@ export default function ScannedI2C(props: Props){
|
||||||
}}
|
}}
|
||||||
select>
|
select>
|
||||||
{subtypeOptions.map(s => (
|
{subtypeOptions.map(s => (
|
||||||
<MenuItem value={s.key}>{s.friendlyName}</MenuItem>
|
<MenuItem key={s.key} value={s.key}>{s.friendlyName}</MenuItem>
|
||||||
))}
|
))}
|
||||||
</TextField>
|
</TextField>
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -42,11 +42,11 @@ const featureVersions: Map<string, FeatureVersionByPlatform> = new Map([
|
||||||
v2Cell: "N/A",
|
v2Cell: "N/A",
|
||||||
v2WifiS3: "N/A",
|
v2WifiS3: "N/A",
|
||||||
v2CellS3: "N/A",
|
v2CellS3: "N/A",
|
||||||
v2CellBlack: "N/A",
|
v2CellBlack: "2.1.6",
|
||||||
v2CellGreen: "N/A",
|
v2CellGreen: "N/A",
|
||||||
v2WifiBlue: "N/A",
|
v2WifiBlue: "2.1.6",
|
||||||
v2CellBlue: "N/A",
|
v2CellBlue: "2.1.6",
|
||||||
v2EthBlue: "N/A"
|
v2EthBlue: "2.1.6"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
]);
|
]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue