// private int SIOMonitorCount = 0; #endregion variables #region Methods // Called when the console is activated for the first time. private void Initialize() { if (Fpass) { SIO.Create(); Fpass = false; } }
public void Init() { lock (this) // do this only once -- keep the lock until we're ready to go less we hose up the poll ptt thread { if (Initialized) { return; } if (portNum == 0) { return; // bail out } commPort = new SDRSerialPort(portNum); //, null); commPort.Create(true); // true says to create bit bang only port -- fixme needs error checking! Initialized = true; } return; }