From 42010a6c26a1cad0769f62c012dbd81b617b0ea3 Mon Sep 17 00:00:00 2001 From: Milan Hanajik Date: Fri, 16 Jun 2023 16:00:57 +0200 Subject: [PATCH] Last RFID change reverted. --- TBF/Rig/TestMethods/iPerlCommunication/OpticalHeadTest.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TBF/Rig/TestMethods/iPerlCommunication/OpticalHeadTest.cs b/TBF/Rig/TestMethods/iPerlCommunication/OpticalHeadTest.cs index 2f23a84e4..e7c33cf5d 100644 --- a/TBF/Rig/TestMethods/iPerlCommunication/OpticalHeadTest.cs +++ b/TBF/Rig/TestMethods/iPerlCommunication/OpticalHeadTest.cs @@ -50,7 +50,7 @@ namespace TBF.Rig.TestMethods.iPerlCommunication string payload = "03"; RfidCommunicationService rfidCommunicationService = new RfidCommunicationService { ComPort = $"COM{iHead.RfidComPortNr}", WaitTimeAfterFailure = 2200, PassThroughWaitTime = 1500, MaxRetries = 3, TimeOut = 5000 }; rfidCommunicationService.RfidWrite(Params.u8_WakeUpInterval, payload); - return rfidCommunicationService.RfidRead(Params.u8_WakeUpInterval) == payload? "OK" : "Error"; + return rfidCommunicationService.RfidRead(Params.u8_WakeUpInterval).ToString() == payload? "OK" : "Error"; } catch (Exception ex) { @@ -66,7 +66,7 @@ namespace TBF.Rig.TestMethods.iPerlCommunication RfidCommunicationService rfidCommunicationService = new RfidCommunicationService { ComPort = $"COM{iHead.RfidComPortNr}", WaitTimeAfterFailure = 2200, PassThroughWaitTime = 1500, MaxRetries = 3, TimeOut = 5000 }; rfidCommunicationService.RfidWrite(SystemInfo.u8_system_state, payload); Thread.Sleep(1000); // must be for pass thru params - return rfidCommunicationService.RfidRead(SystemInfo.u8_system_state) == payload ? "OK" : "Error"; + return rfidCommunicationService.RfidRead(SystemInfo.u8_system_state).ToString() == payload ? "OK" : "Error"; } catch (Exception ex) { @@ -84,7 +84,7 @@ namespace TBF.Rig.TestMethods.iPerlCommunication { RfidCommunicationService rfidCommunicationService = new RfidCommunicationService { ComPort = $"COM{iHead.RfidComPortNr}", WaitTimeAfterFailure = 2200, PassThroughWaitTime = 1500, MaxRetries = 3, TimeOut = 5000 }; //rfidCommunicationService.RfidWrite(Params.u8_Customer_Text, custText); - return rfidCommunicationService.RfidRead(Params.u8_Customer_Text); + return rfidCommunicationService.RfidRead(Params.u8_Customer_Text).ToString(); } } catch (Exception ex)