Example #1
0
    public AntChannel OpenBackgroundScanChannel(byte userChannel)
    {
        AntChannel channel = this.gameObject.AddComponent <AntChannel>();

        channelList.Add(channel);
        channel.ConfigureScan(userChannel);
        return(channel);
    }
Example #2
0
    public AntChannel OpenBackgroundScanChannel(byte userChannel, byte USBDeviceNum = 0)
    {
        nScanRequest++;
        if (backgroundScanChannel) //if a background Scan channel already exist
        {
            return(backgroundScanChannel);
        }

        channelIDUsed[USBDeviceNum, userChannel] = true;
        backgroundScanChannel = this.gameObject.AddComponent <AntChannel>();
        channelList.Add(backgroundScanChannel);
        backgroundScanChannel.ConfigureScan(userChannel, USBDeviceNum);

        return(backgroundScanChannel);
    }