Switch few function from public to private
This commit is contained in:
parent
dafef572ab
commit
486abbdf56
|
@ -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;
|
||||
|
|
|
@ -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; }
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue