getting the drager components that are using I2C to use the expander and not the cable id

This commit is contained in:
csawatzky 2025-10-20 14:15:38 -06:00
parent 58bbf07690
commit cd95f01142

View file

@ -518,7 +518,8 @@ export default function ComponentSettings(props: Props) {
}
const supportsExpansion = () => {
return (formComponent.settings.type === quack.ComponentType.COMPONENT_TYPE_GRAIN_CABLE &&
return ((formComponent.settings.type === quack.ComponentType.COMPONENT_TYPE_GRAIN_CABLE ||
formComponent.settings.type === quack.ComponentType.COMPONENT_TYPE_DRAGER_GAS_DONGLE) &&
formComponent.settings.addressType === quack.AddressType.ADDRESS_TYPE_I2C)
}