Camera : Logging of incoming measurement datagrams, ver. 2.12.448

This commit is contained in:
Milan Hanajik
2017-01-26 16:18:09 +01:00
parent a20edf7890
commit e8966f6705
2 changed files with 4 additions and 3 deletions
@@ -300,11 +300,11 @@ namespace TBF.BenchControl.Network.Camera.CLP1611
try
{
while (true)
{
byte[] byteArray = measurementListener.Receive(ref ipEndPoint);
toBeProcessed.Append(Encoding.ASCII.GetString(byteArray, 0, byteArray.Length));
log.DebugFormat("MeasurementUdpListener() ... toBeProcessed = {0}", toBeProcessed);
while (true)
{
@@ -315,6 +315,7 @@ namespace TBF.BenchControl.Network.Camera.CLP1611
if (len < 0) break;
string[] pulsesArr = toBeProcessed.ToString(from + 1, len).Split(new char[] { ';' });
if (result != null && result.Length + 1 == pulsesArr.Length)
{
for (int i = 0; i < result.Length; i++)