Example #1
0
    void AddPort(string portName)
    {
        ComPort comPort = comPorts.GetPort(portName);

        if (comPort != null && !m_scope.ContainsVariable(portName))
        {
            Debug.Log(portName + " added to scope");
            m_scope.SetVariable(portName, comPort);
        }
    }