Changed ProtocolCore configuration from x86 to Any CPU
This commit is contained in:
@@ -70,7 +70,7 @@ namespace Xylem.Common.Hardware.Interfaces.Protocols.ProtocolCore
|
||||
while (_decodingThread.ThreadState != ThreadState.Stopped && timeoutCounter > 0)
|
||||
{
|
||||
Thread.Sleep(1);
|
||||
timeoutCounter = timeoutCounter - 1;
|
||||
timeoutCounter -= 1;
|
||||
}
|
||||
|
||||
if (_decodingThread.ThreadState != ThreadState.Stopped)
|
||||
@@ -110,9 +110,7 @@ namespace Xylem.Common.Hardware.Interfaces.Protocols.ProtocolCore
|
||||
{
|
||||
while (!_decodingToken.IsCancellationRequested)
|
||||
{
|
||||
|
||||
IPortDataEventArgs receivedRecord;
|
||||
while (_decodingFifo.TryDequeue(out receivedRecord))
|
||||
while (_decodingFifo.TryDequeue(out var receivedRecord))
|
||||
{
|
||||
DecodeRecord(receivedRecord);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user