Add battery IoStates

This commit is contained in:
atef 2024-01-25 10:17:14 +01:00
parent 05a0b02ee5
commit 3e37bcca00
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ public partial class Battery48TlRecord
public Boolean ConnectedToDcBus => (_IoStates & 1) == 0; public Boolean ConnectedToDcBus => (_IoStates & 1) == 0;
public Boolean Eoc => Leds is { Green: On, Amber: Off, Blue : Off }; public Boolean Eoc => Leds is { Green: On, Amber: Off, Blue : Off };
public UInt16 IoStates => _IoStates;
public String SerialNumber => $"{_SerialNum1:X4}{_SerialNum2:X4}{_SerialNum3:X4}{_SerialNum4:X4}".TrimEnd('0'); public String SerialNumber => $"{_SerialNum1:X4}{_SerialNum2:X4}{_SerialNum3:X4}{_SerialNum4:X4}".TrimEnd('0');