Exemplo n.º 1
0
        public void Transmit(byte[] frame)
        {
            if (PortMonitor.Enabled)
            {
                PortMonitor.Add(rx: false, data: frame);
            }

            DoTransmit(frame);
        }
Exemplo n.º 2
0
        private void Discard()
        {
            if (buffer.Count > 0)
            {
                buffer.Clear();
            }

            if (raw.Count > 0)
            {
                if (PortMonitor.Enabled)
                {
                    PortMonitor.Add(rx: true, raw.ToArray());
                }

                raw.Clear();
            }
        }