update Battery deligreen Lib
This commit is contained in:
parent
8db16313e9
commit
bf37840d0d
|
|
@ -4,7 +4,6 @@ namespace InnovEnergy.Lib.Devices.BatteryDeligreen;
|
|||
|
||||
public class BatteryDeligreenRecords
|
||||
{
|
||||
//public required DcBus Dc { get; init; }
|
||||
public required Current Current { get; init; }
|
||||
public required Voltage Voltage { get; init; }
|
||||
public required Percent Soc { get; init; }
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public class TelecommandFrameParser
|
|||
}
|
||||
|
||||
// Check starting byte
|
||||
string startingByte = response.Substring(_currentIndex, 2).ToUpper();
|
||||
var startingByte = response.Substring(_currentIndex, 2).ToUpper();
|
||||
if (startingByte == "7E")
|
||||
{
|
||||
// Console.WriteLine($"Starting byte: {startingByte} (Hex)");
|
||||
|
|
|
|||
Loading…
Reference in New Issue