updateSwitcherInputOutput(..) bug
PhreaK
Posts: 966
I'm not sure whether this is just sleep deprivation getting to me but the updateSwitcherInputOutput(..) method at line 678 of SwitcherComponentImpl.java (in devicesdk.jar) seems to be dodgy.
The first thing it does is remove any inputOutputData from alInputOutput with a matching input to the that the method is updating. If you're just using a single switch level (eg. SwitchLevel.ALL) this is all fine however if you implement breakaway switching it causes issues as it doesn't allow a single input to feed discrete outputs across switch levels.
Am I missing something or is this a 'feature' others have had to work around?
The first thing it does is remove any inputOutputData from alInputOutput with a matching input to the that the method is updating. If you're just using a single switch level (eg. SwitchLevel.ALL) this is all fine however if you implement breakaway switching it causes issues as it doesn't allow a single input to feed discrete outputs across switch levels.
Am I missing something or is this a 'feature' others have had to work around?
0
Comments
You are right, i had to write my own to override that method... The super implemenation seems to assume that an input can only go to single output versus multiple outputs.