From a455d62e9e121fae7e9b0939014a599ed2230a10 Mon Sep 17 00:00:00 2001 From: Jan Augustin Date: Fri, 9 Jun 2023 09:29:57 +0200 Subject: [PATCH] RfidCommunicationService.RfidRead method - return type changed to dynamic. --- 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 e7c33cf5d..2f23a84e4 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).ToString() == payload? "OK" : "Error"; + return rfidCommunicationService.RfidRead(Params.u8_WakeUpInterval) == 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).ToString() == payload ? "OK" : "Error"; + return rfidCommunicationService.RfidRead(SystemInfo.u8_system_state) == 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).ToString(); + return rfidCommunicationService.RfidRead(Params.u8_Customer_Text); } } catch (Exception ex)