Skip to content

Commit

Permalink
Update Program.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Blueion76 authored Nov 16, 2024
1 parent 74309c5 commit 629f46b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions FCAAddon/FCAClient/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ await app.RunAsync(async (CoconaAppContext ctx) =>
Log.Information("{0}", appConfig.ToStringWithoutSecrets());
Log.Debug("{0}", appConfig.Dump());

FiatClient fiatClient = new FiatClient(appConfig.FiatUser, appConfig.FiatPw, appConfig.Brand, appConfig.Region);
FiatClient fiatClient = new FiatClient(appConfig.FCAUser, appConfig.FCAPw, appConfig.Brand, appConfig.Region);

var mqttClient = new SimpleMqttClient(appConfig.MqttServer, appConfig.MqttPort, appConfig.MqttUser, appConfig.MqttPw, "FCAUconnect");

Expand Down Expand Up @@ -143,12 +143,12 @@ async Task<bool> TrySendCommand(FiatClient fiatClient, FiatCommand command, stri
{
Log.Information("SEND COMMAND {0}: ", command.Message);

if (string.IsNullOrWhiteSpace(appConfig.FiatPin))
if (string.IsNullOrWhiteSpace(appConfig.FCAPin))
{
throw new Exception("PIN NOT SET");
}

var pin = appConfig.FiatPin;
var pin = appConfig.FCAPin;

try
{
Expand Down

0 comments on commit 629f46b

Please sign in to comment.