From 96d9df4b925fa3c311233fb628cec857efb99721 Mon Sep 17 00:00:00 2001 From: Federico Barresi Date: Fri, 17 Jan 2020 14:01:18 +0100 Subject: [PATCH] Added Log For Error Code at connection --- Sharp7.Rx/Sharp7Connector.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sharp7.Rx/Sharp7Connector.cs b/Sharp7.Rx/Sharp7Connector.cs index 76009bd..d4ce062 100644 --- a/Sharp7.Rx/Sharp7Connector.cs +++ b/Sharp7.Rx/Sharp7Connector.cs @@ -142,7 +142,7 @@ namespace Sharp7.Rx throw new InvalidOperationException(StringResources.StrErrorS7DriverNotInitialized); var errorText = sharp7.ErrorText(errorCode); - + Logger.LogError($"Error Code {errorCode} {errorText}"); await SetConnectionLostState(); return false;