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); }
public Switch(SerialPort sp) { spbuf = new Queue<Byte>(4); cmdset = new Config("./command.xml"); _sport = sp; _sport.DataReceived += new SerialDataReceivedEventHandler(_sport_DataReceived); }