updated the proto with the new definition for the i2c scan stuff, and updated the react components accordingly

This commit is contained in:
csawatzky 2025-07-14 13:25:54 -06:00
parent 8b69632be4
commit 4cfbe9f1c6
4 changed files with 13 additions and 13 deletions

View file

@ -207,7 +207,7 @@ export default function DeviceScannedComponents(props: Props){
</Box>
{scannedI2C.settings?.foundAddresses && scannedI2C.settings.foundAddresses.length > 0 ? scannedI2C?.settings?.foundAddresses.map((addr, index) => {
return (
<ScannedI2C key={index} sensorNum={index+1} decimalAddress={addr} deviceProduct={device.settings.product} componentSelectionCallback={componentSelection} availablePositions={availablePositions.get(quack.AddressType.ADDRESS_TYPE_I2C) ?? []}/>
<ScannedI2C key={index} sensorNum={index+1} addressData={addr} deviceProduct={device.settings.product} componentSelectionCallback={componentSelection} availablePositions={availablePositions.get(quack.AddressType.ADDRESS_TYPE_I2C) ?? []}/>
)
}) :
<Box sx={{