fix for the I2C Drager stuff so it uses the expansion line and not cable id so the address type stays as 2, onewire drager will still use cable id

This commit is contained in:
csawatzky 2025-10-23 13:01:54 -06:00
parent 61ea77846c
commit 98a1538167

View file

@ -514,7 +514,8 @@ export default function ComponentSettings(props: Props) {
} }
const supportsExpansion = () => { 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) formComponent.settings.addressType === quack.AddressType.ADDRESS_TYPE_I2C)
} }