fixing space and comments
This commit is contained in:
parent
7a5c5845bf
commit
78676ce504
|
@ -6,7 +6,7 @@ public class Configuration
|
|||
{
|
||||
public Double MinimumSoC { get; set; }
|
||||
public Double GridSetPoint { get; set; }
|
||||
public CalibrationChargeType CalibrationChargeState { get; set; }
|
||||
public CalibrationChargeType CalibrationChargeState { get; set; }
|
||||
public DateTime CalibrationChargeDate { get; set; }
|
||||
}
|
||||
|
||||
|
|
|
@ -685,8 +685,8 @@ internal static class Program
|
|||
|
||||
private static void ApplyConfigFile(this StatusRecord status, Configuration? config)
|
||||
{
|
||||
status.Config.MinSoc = config.MinimumSoC;
|
||||
status.Config.GridSetPoint = config.GridSetPoint * 1000; // converted from kW to W
|
||||
status.Config.MinSoc = config.MinimumSoC;
|
||||
status.Config.GridSetPoint = config.GridSetPoint * 1000; // converted from kW to W
|
||||
status.Config.ForceCalibrationChargeState = config.CalibrationChargeState;
|
||||
|
||||
if (config.CalibrationChargeState == CalibrationChargeType.RepetitivelyEvery)
|
||||
|
|
|
@ -37,7 +37,7 @@ public class Battery48TlRecords
|
|||
Temperature = records.Average(b => b.Temperatures.Cells.Average.Value),
|
||||
HeatingPower = records.Sum(b => b.HeatingPower),
|
||||
TimeSinceToc = records.Max(r => r.TimeSinceTOC),
|
||||
CalibrationChargeRequested = records.Any(r => r.CalibrationChargeRequested), // we changed this to Any instead of All, it's mean we wait only one battery to reach the 14 days
|
||||
CalibrationChargeRequested = records.Any(r => r.CalibrationChargeRequested), // we changed this to Any instead of All, it's mean we wait only one battery to reach the 7 days
|
||||
|
||||
Dc = new()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue