示例#1
0
        public Navmeter(SerialPort sp)
        {
            cmdset = new Config("./command.xml");

            vars = new Dictionary<string,string>();
            spbuf = new StringBuilder();
            _sport = sp;
            _sport.DataReceived += new SerialDataReceivedEventHandler(_sport_DataReceived);
        }
示例#2
0
 public Switch(SerialPort sp)
 {
     spbuf = new Queue<Byte>(4);
     cmdset = new Config("./command.xml");
     _sport = sp;
     _sport.DataReceived += new SerialDataReceivedEventHandler(_sport_DataReceived);
 }