From 486abbdf56c9836fd3f267310a5d7799b8b65d02 Mon Sep 17 00:00:00 2001 From: atef Date: Thu, 13 Jul 2023 09:53:13 +0200 Subject: [PATCH] Switch few function from public to private --- csharp/App/SaliMax/src/SaliMaxRelays/RelaysRecord.cs | 2 +- .../Trumpf/SystemControl/SystemControlRegisters.Modbus.cs | 2 +- csharp/Lib/Utils/TextBlock.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/csharp/App/SaliMax/src/SaliMaxRelays/RelaysRecord.cs b/csharp/App/SaliMax/src/SaliMaxRelays/RelaysRecord.cs index 2f0f98aee..09875bbf2 100644 --- a/csharp/App/SaliMax/src/SaliMaxRelays/RelaysRecord.cs +++ b/csharp/App/SaliMax/src/SaliMaxRelays/RelaysRecord.cs @@ -6,7 +6,7 @@ public class RelaysRecord { private readonly Adam6360DRegisters _Regs; - public RelaysRecord(Adam6360DRegisters regs) => _Regs = regs; + private RelaysRecord(Adam6360DRegisters regs) => _Regs = regs; public Boolean K1GridBusIsConnectedToGrid => _Regs.DigitalInput6; public Boolean K2IslandBusIsConnectedToGridBus => !_Regs.DigitalInput4; diff --git a/csharp/Lib/Devices/Trumpf/SystemControl/SystemControlRegisters.Modbus.cs b/csharp/Lib/Devices/Trumpf/SystemControl/SystemControlRegisters.Modbus.cs index 4ea2187dc..5afaa7e4a 100644 --- a/csharp/Lib/Devices/Trumpf/SystemControl/SystemControlRegisters.Modbus.cs +++ b/csharp/Lib/Devices/Trumpf/SystemControl/SystemControlRegisters.Modbus.cs @@ -26,7 +26,7 @@ public partial record SystemControlRegisters //[Coil(4002)] [HoldingRegister(4002)] public Boolean ResetAlarmsAndWarnings { get; set; } - [HoldingRegister(4007)] public UInt16 TargetSlave { get; set; } + [HoldingRegister(4007)] public UInt16 TargetSlave { get; set; } //[Coil(4011)] [HoldingRegister(4011)] public Boolean UseSlaveIdForAddressing { get; set; } diff --git a/csharp/Lib/Utils/TextBlock.cs b/csharp/Lib/Utils/TextBlock.cs index 2f03efae7..1f7349d78 100644 --- a/csharp/Lib/Utils/TextBlock.cs +++ b/csharp/Lib/Utils/TextBlock.cs @@ -23,7 +23,7 @@ public class TextBlock return new TextBlock(alignedLines); } - public static TextBlock AlignRight(IReadOnlyList things) + private static TextBlock AlignRight(IReadOnlyList things) { var lines = things .SelectMany(GetLines)