Skip to content

Commit

Permalink
Allow new frequencies
Browse files Browse the repository at this point in the history
  • Loading branch information
AliceFord committed Aug 27, 2023
1 parent a89f3fd commit 11d2a67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Compiler/Parser/VatsimRtfFrequencyParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 11d2a67

Please sign in to comment.