Skip to content

Commit 7833d03

Browse files
committed
fix indentations
1 parent f85d987 commit 7833d03

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

src/S7CommPlusDriver/Net/S7Client.cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -386,17 +386,17 @@ private int ISOConnect()
386386
return _LastError;
387387
}
388388

389-
public byte[] getOMSExporterSecret()
390-
{
391-
if (m_sslconn == null) return null;
392-
return m_sslconn.getOMSExporterSecret();
393-
}
389+
public byte[] getOMSExporterSecret()
390+
{
391+
if (m_sslconn == null) return null;
392+
return m_sslconn.getOMSExporterSecret();
393+
}
394394

395-
#endregion
395+
#endregion
396396

397-
#region [Class Control]
397+
#region [Class Control]
398398

399-
public S7Client()
399+
public S7Client()
400400
{
401401
m_DateTimeStarted = DateTime.Now;
402402
CreateSocket();
@@ -584,8 +584,8 @@ public static string ErrorText(int Error)
584584
case S7Consts.errCliInvalidBlockSize: return "CLI : Invalid block size";
585585
case S7Consts.errCliNeedPassword: return "CPU : Function not authorized for current protection level";
586586
case S7Consts.errCliInvalidPassword: return "CPU : Invalid password";
587-
case S7Consts.errCliAccessDenied: return "CPU : Access denied";
588-
case S7Consts.errCliNoPasswordToSetOrClear: return "CPU : No password to set or clear";
587+
case S7Consts.errCliAccessDenied: return "CPU : Access denied";
588+
case S7Consts.errCliNoPasswordToSetOrClear: return "CPU : No password to set or clear";
589589
case S7Consts.errCliJobTimeout: return "CLI : Job Timeout";
590590
case S7Consts.errCliFunctionRefused: return "CLI : function refused by CPU (Unknown error)";
591591
case S7Consts.errCliPartialDataRead: return "CLI : Partial data read";
@@ -594,9 +594,9 @@ public static string ErrorText(int Error)
594594
case S7Consts.errCliInvalidParamNumber: return "CLI : Invalid Param Number";
595595
case S7Consts.errCliCannotChangeParam: return "CLI : Cannot change this param now";
596596
case S7Consts.errCliFunctionNotImplemented: return "CLI : Function not implemented";
597-
case S7Consts.errCliFirmwareNotSupported: return "CLI : Firmware not supported";
598-
case S7Consts.errCliDeviceNotSupported: return "CLI : Device type not supported";
599-
default: return "CLI : Unknown error (0x" + Convert.ToString(Error, 16) + ")";
597+
case S7Consts.errCliFirmwareNotSupported: return "CLI : Firmware not supported";
598+
case S7Consts.errCliDeviceNotSupported: return "CLI : Device type not supported";
599+
default: return "CLI : Unknown error (0x" + Convert.ToString(Error, 16) + ")";
600600
};
601601
}
602602

src/S7CommPlusDriver/Net/S7Consts.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ public static class S7Consts
6464
public const int errCliInvalidBlockSize = 0x01900000;
6565
public const int errCliNeedPassword = 0x01D00000;
6666
public const int errCliInvalidPassword = 0x01E00000;
67-
public const int errCliAccessDenied = 0x01E10000;
68-
public const int errCliNoPasswordToSetOrClear = 0x01F00000;
67+
public const int errCliAccessDenied = 0x01E10000;
68+
public const int errCliNoPasswordToSetOrClear = 0x01F00000;
6969
public const int errCliJobTimeout = 0x02000000;
7070
public const int errCliPartialDataRead = 0x02100000;
7171
public const int errCliBufferTooSmall = 0x02200000;
@@ -74,10 +74,10 @@ public static class S7Consts
7474
public const int errCliInvalidParamNumber = 0x02500000;
7575
public const int errCliCannotChangeParam = 0x02600000;
7676
public const int errCliFunctionNotImplemented = 0x02700000;
77-
public const int errCliFirmwareNotSupported = 0x02800000;
78-
public const int errCliDeviceNotSupported = 0x02900000;
77+
public const int errCliFirmwareNotSupported = 0x02800000;
78+
public const int errCliDeviceNotSupported = 0x02900000;
7979

80-
public const int errOpenSSL = 0x03100000;
80+
public const int errOpenSSL = 0x03100000;
8181
//------------------------------------------------------------------------------
8282
// PARAMS LIST FOR COMPATIBILITY WITH Snap7.net.cs
8383
//------------------------------------------------------------------------------

0 commit comments

Comments
 (0)