Change From double to UInt16
This commit is contained in:
parent
1d116a5b33
commit
993d344918
|
@ -31,14 +31,14 @@ public partial class Battery48TlRecord
|
||||||
[InputRegister(1017, Scale = 0.1, Offset = -400)] private Double _TemperaturesCellsRight;
|
[InputRegister(1017, Scale = 0.1, Offset = -400)] private Double _TemperaturesCellsRight;
|
||||||
[InputRegister(1003, Scale = 0.1, Offset = -400)] private Double _TemperaturesCellsAverage;
|
[InputRegister(1003, Scale = 0.1, Offset = -400)] private Double _TemperaturesCellsAverage;
|
||||||
|
|
||||||
[InputRegister(1054)] private Double _FwVersion;
|
[InputRegister(1054)] private UInt16 _FwVersion;
|
||||||
[InputRegister(1055)] private Double _SerialNum1;
|
[InputRegister(1055)] private UInt16 _SerialNum1;
|
||||||
[InputRegister(1056)] private Double _SerialNum2;
|
[InputRegister(1056)] private UInt16 _SerialNum2;
|
||||||
[InputRegister(1057)] private Double _SerialNum3;
|
[InputRegister(1057)] private UInt16 _SerialNum3;
|
||||||
[InputRegister(1058)] private Double _SerialNum4;
|
[InputRegister(1058)] private UInt16 _SerialNum4;
|
||||||
[InputRegister(1059)] private Double _LimpBitMap;
|
[InputRegister(1059)] private UInt16 _LimpBitMap;
|
||||||
[InputRegister(1060)] private Double _BatteryState1;
|
[InputRegister(1060)] private UInt16 _BatteryState1;
|
||||||
[InputRegister(1061)] private Double _BatteryState2;
|
[InputRegister(1061)] private UInt16 _BatteryState2;
|
||||||
|
|
||||||
private LedState ParseLed(LedColor led) => (LedState)((_LedStates >> (Int32)led) & 3);
|
private LedState ParseLed(LedColor led) => (LedState)((_LedStates >> (Int32)led) & 3);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue