@@ -428,8 +428,8 @@ protected sealed override void fillPacketCore(ref byte[] p)
428428
429429 p [ 16 ] = MajorVersion ; // 5 VersInfoH
430430 p [ 17 ] = MinorVersion ; // 6 VersInfoL
431- p [ 18 ] = Net ; // 7 NetSwitch
432- p [ 19 ] = Subnet ; // 8 SubSwitch
431+ p [ 18 ] = Net . Value ; // 7 NetSwitch
432+ p [ 19 ] = Subnet . Value ; // 8 SubSwitch
433433 Tools . FromUShort ( OemCode , out p [ 21 ] , out p [ 20 ] ) ; // 9 & 10 OEM code
434434 p [ 22 ] = UbeaVersion ; // 11 UbeaVersion
435435 p [ 23 ] = Status . StatusByte1 ; //p[23] = 0xD0; // 12 Status 1 - Indicator normal, addresses set by "front panel"
@@ -465,15 +465,25 @@ protected sealed override void fillPacketCore(ref byte[] p)
465465 //p[186] = ReceiveUniverse;
466466 if ( InputUniverses != null )
467467 for ( int i = 0 ; i < InputUniverses . Length ; i ++ )
468- p [ 186 + i ] = InputUniverses [ i ] is Universe universe ? universe : ( Address ) InputUniverses [ i ] ;
468+ {
469+ if ( InputUniverses [ i ] is Universe universe )
470+ p [ 186 + i ] = universe . Value ;
471+ else if ( InputUniverses [ i ] is Address address )
472+ p [ 186 + i ] = address . Combined ;
473+ }
469474
470475 // 24 SwIn [4] Input Universe
471476 //p[190] = SendUniverse;
472477 if ( OutputUniverses != null )
473478 for ( int i = 0 ; i < OutputUniverses . Length ; i ++ )
474- p [ 190 + i ] = OutputUniverses [ i ] is Universe universe ? universe : ( Address ) OutputUniverses [ i ] ;
475-
476- p [ 194 ] = AcnPriority ; // 25 AcnPriority
479+ {
480+ if ( OutputUniverses [ i ] is Universe universe )
481+ p [ 190 + i ] = universe . Value ;
482+ else if ( OutputUniverses [ i ] is Address address )
483+ p [ 190 + i ] = address . Combined ;
484+ }
485+
486+ p [ 194 ] = AcnPriority ; // 25 AcnPriority
477487 p [ 195 ] = ( byte ) Macro ; // 26 SwMacro
478488 p [ 196 ] = ( byte ) Remote ; // 27 SwRemote
479489
0 commit comments