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 try
{ {
while (true) while (true)
{ {
byte[] byteArray = measurementListener.Receive(ref ipEndPoint); byte[] byteArray = measurementListener.Receive(ref ipEndPoint);
toBeProcessed.Append(Encoding.ASCII.GetString(byteArray, 0, byteArray.Length)); toBeProcessed.Append(Encoding.ASCII.GetString(byteArray, 0, byteArray.Length));
log.DebugFormat("MeasurementUdpListener() ... toBeProcessed = {0}", toBeProcessed);
while (true) while (true)
{ {
@@ -315,6 +315,7 @@ namespace TBF.BenchControl.Network.Camera.CLP1611
if (len < 0) break; if (len < 0) break;
string[] pulsesArr = toBeProcessed.ToString(from + 1, len).Split(new char[] { ';' }); string[] pulsesArr = toBeProcessed.ToString(from + 1, len).Split(new char[] { ';' });
if (result != null && result.Length + 1 == pulsesArr.Length) if (result != null && result.Length + 1 == pulsesArr.Length)
{ {
for (int i = 0; i < result.Length; i++) for (int i = 0; i < result.Length; i++)
@@ -29,5 +29,5 @@ using System.Runtime.InteropServices;
// Build Number // Build Number
// Revision // Revision
// //
[assembly: AssemblyVersion("2.12.447.1")] [assembly: AssemblyVersion("2.12.448.1")]
[assembly: AssemblyFileVersion("2.12.447.1")] [assembly: AssemblyFileVersion("2.12.448.1")]