null
if (DataBuffer.Contains(ok)) { okFound = true; }
string temp = getLine(DataBuffer.Substring(mylocation)); if (!checkTypeFound()) { if (temp != null) { parseDeviceType(temp); } checkTypeFound(); }
private void ser1_DataReceived(object sender, SerialDataReceivedEventArgs e) { while (ser1.BytesToRead > 0) { string data = ser1.ReadExisting(); DataBuffer += data; } }
DataBuffer
NullReferenceException
string.Empty
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)