Skip to content

Commit

Permalink
Fix issue with ATIS letter not being sent to FSD (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
justinshannon authored Feb 3, 2025
1 parent b58dbf4 commit ae61846
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vATIS.Desktop/Ui/ViewModels/AtisStationViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -827,6 +827,7 @@ private async void HandleVoiceRecordAtisCommand()
await Task.Run(async () =>
{
_atisStation.TextAtis = textAtis;
_atisStation.AtisLetter = AtisLetter;

await PublishAtisToHub();
_networkConnection.SendSubscriberNotification(AtisLetter);
Expand Down Expand Up @@ -1127,6 +1128,7 @@ private async void OnMetarResponseReceived(object? sender, MetarResponseReceived
_cancellationToken.Token);

_atisStation.TextAtis = textAtis?.ToUpperInvariant();
_atisStation.AtisLetter = AtisLetter;

await PublishAtisToWebsocket();
await PublishAtisToHub();
Expand Down Expand Up @@ -1275,6 +1277,7 @@ private async Task HandleSelectedAtisPresetChanged(AtisPreset? preset)
_cancellationToken.Token);

_atisStation.TextAtis = textAtis?.ToUpperInvariant();
_atisStation.AtisLetter = AtisLetter;

await PublishAtisToHub();
await PublishAtisToWebsocket();
Expand Down Expand Up @@ -1464,6 +1467,7 @@ await Task.Run(async () =>
_decodedMetar, _cancellationToken.Token);

_atisStation.TextAtis = textAtis?.ToUpperInvariant();
_atisStation.AtisLetter = AtisLetter;

await PublishAtisToHub();
_networkConnection?.SendSubscriberNotification(AtisLetter);
Expand Down

0 comments on commit ae61846

Please sign in to comment.