Switch few function from public to private

This commit is contained in:
atef 2023-07-13 09:53:13 +02:00
parent dafef572ab
commit 486abbdf56
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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; }

View File

@ -23,7 +23,7 @@ public class TextBlock
return new TextBlock(alignedLines);
}
public static TextBlock AlignRight(IReadOnlyList<Object> things)
private static TextBlock AlignRight(IReadOnlyList<Object> things)
{
var lines = things
.SelectMany(GetLines)