Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 2256 → Rev 2257

/MKLiveView/Source/EasySerialPort/SimpleSerialPort.cs
168,12 → 168,11
if (!append)
{
byte[] message = new byte[i+1 - offset];
if(buffer[offset] != '#')
if (buffer[offset] != '#')
System.Diagnostics.Debug.Print(buffer[offset].ToString());
Buffer.BlockCopy(buffer, offset, message, 0, i + 1 - offset);
if (DataReceived != null)
DataReceived(message);
// bFound = true;
}
else
{
188,7 → 187,6
// System.Diagnostics.Debug.Print(BitConverter.ToString(message));
if (DataReceived != null)
DataReceived(message);
// bFound = true;
}
offset = i + 1;
if (buffer.Length > i + 1)
213,7 → 211,6
if (buffer[offset] != '#')
System.Diagnostics.Debug.Print(buffer[offset].ToString("X2"));
Buffer.BlockCopy(buffer, offset, messageBuffer, 0, buffer.Length-offset);
// textBoxBuffer.Invoke((Action)(() => textBoxBuffer.Text = "n " + offset.ToString()));
lastoffset = (buffer.Length - offset);
}
else
221,7 → 218,6
if (messageBuffer[0] != '#')
System.Diagnostics.Debug.Print(buffer[0].ToString("X2"));
Buffer.BlockCopy(buffer, offset, messageBuffer, lastoffset, buffer.Length-offset);
// textBoxBuffer.Invoke((Action)(() => textBoxBuffer.Text = "a " + offset.ToString()));
 
lastoffset += (buffer.Length - offset);
}
/MKLiveView/Source/EasySerialPort/bin/Debug/SimpleSerialPort.dll
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/MKLiveView/Source/EasySerialPort/bin/Debug/SimpleSerialPort.pdb
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/MKLiveView/Source/EasySerialPort/bin/Release/SimpleSerialPort.dll
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/MKLiveView/Source/EasySerialPort/bin/Release/SimpleSerialPort.pdb
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/MKLiveView/Source/EasySerialPort/obj/Debug/SimpleSerialPort.dll
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/MKLiveView/Source/EasySerialPort/obj/Debug/SimpleSerialPort.pdb
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/MKLiveView/Source/EasySerialPort/obj/Release/SimpleSerialPort.dll
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/MKLiveView/Source/EasySerialPort/obj/Release/SimpleSerialPort.pdb
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream