Exemplo n.º 1
0
        private void RxPacketComplete(SerialPacket s)
        {
            //Console.WriteLine("Receive Packet Complete:");
            for (int i = 0; i < s.receive_length; i++)
            {
            }

            SimpleSerialPacket simple = new SimpleSerialPacket(s.receive_data.Take(s.receive_data_count).ToArray(), s.receive_address);

            if (newDataAvailable != null)
            {
                newDataAvailable(simple);
            }
        }
Exemplo n.º 2
0
        private void RxPacketComplete(SerialPacket s)
        {
            //Console.WriteLine("Receive Packet Complete:");
            for (int i = 0; i < s.receive_length; i++)
            {
            }

            SimpleSerialPacket simple = new SimpleSerialPacket(s.receive_data.Take(s.receive_data_count).ToArray(), s.receive_address);
            if (newDataAvailable != null)
            {
                newDataAvailable(simple);
            }
        }