protected fun copyToOpsw() { opsw.get(1) = fullmode.isSelected() opsw.get(2) = twoaspects.isSelected() opsw.get(11) = semaphore.isSelected() opsw.get(12) = pulsed.isSelected() opsw.get(13) = disableDS.isSelected() opsw.get(14) = fromloconet.isSelected() opsw.get(15) = disablelocal.isSelected() opsw.get(17) = sigaddress.isSelected() opsw.get(18) = bcastaddress.isSelected() opsw.get(19) = semaddress.isSelected() opsw.get(20) = setdefault.isSelected() opsw.get(21) = exercise.isSelected() var value: Int = section1to4mode.getSelectedIndex() opsw.get(5) = value and 0x01 != 0 opsw.get(4) = value and 0x02 != 0 opsw.get(3) = value and 0x04 != 0 value = section5to8mode.getSelectedIndex() opsw.get(8) = value and 0x01 != 0 opsw.get(7) = value and 0x02 != 0 opsw.get(6) = value and 0x04 != 0 value = fourthAspect.getSelectedIndex() opsw.get(10) = value and 0x01 != 0 opsw.get(9) = value and 0x02 != 0 }
Copy from the GUI to the opsw array . < p > Used before write operations start