Skip to content

Commit

Permalink
feat(ChargingService): update variable to log
Browse files Browse the repository at this point in the history
  • Loading branch information
pkuehnel committed Jan 20, 2024
1 parent e80efb9 commit fd40090
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TeslaSolarCharger/Server/Services/ChargingService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ private void UpdateShouldStartStopChargingSince(Car car)
var lastSetAmp = car.CarState.ChargerRequestedCurrent ?? car.CarState.LastSetAmp;
if (actualCurrent > lastSetAmp)
{
_logger.LogTrace("Actual current {actualCurrent} higher than last set amp {lastSetAmp}. Setting actual current as last set amp.", actualCurrent, car.CarState.LastSetAmp);
_logger.LogTrace("Actual current {actualCurrent} higher than last set amp {lastSetAmp}. Setting actual current as last set amp.", actualCurrent, lastSetAmp);
actualCurrent = lastSetAmp;
}
ampToSet += actualCurrent;
Expand Down

0 comments on commit fd40090

Please sign in to comment.