From 11d2a67a9cbb5d087c7cdc792cb3e5c1c8eeebab Mon Sep 17 00:00:00 2001 From: Alice Date: Sun, 27 Aug 2023 07:23:42 +0100 Subject: [PATCH] Allow new frequencies --- src/Compiler/Parser/VatsimRtfFrequencyParser.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Compiler/Parser/VatsimRtfFrequencyParser.cs b/src/Compiler/Parser/VatsimRtfFrequencyParser.cs index f5de6137..9e5097a2 100644 --- a/src/Compiler/Parser/VatsimRtfFrequencyParser.cs +++ b/src/Compiler/Parser/VatsimRtfFrequencyParser.cs @@ -5,7 +5,7 @@ public class VatsimRtfFrequencyParser : IFrequencyParser // This has to be much lower because some are defined on the VORs const int FirstMinValue = 108; const int FirstMaxValue = 136; - const int SecondDividend = 25; + const int SecondDividend = 5; private const string PrePositionsFrequency = "199.998"; private const string NotValidFrequency = "199.900"; @@ -34,7 +34,7 @@ public string ParseFrequency(string frequency) return null; } - if ((second % SecondDividend) != 0 && ((second + 5) % SecondDividend) != 0) + if ((second % SecondDividend) != 0) { return null; }