Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue with ATIS letter not being sent to FSD #108

Merged
merged 1 commit into from
Feb 3, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -1272,6 +1274,7 @@ private async Task HandleSelectedAtisPresetChanged(AtisPreset? preset)
_cancellationToken.Token);

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

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

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

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