Update RadioController.cs to support 4 deciamal in frequency change
Some checks failed
Build and Release RadioGUI / build (push) Has been cancelled
Build and Release RadioGUI / release (push) Has been cancelled

This commit is contained in:
Andrea Santaniello 2024-12-05 14:16:56 +01:00 committed by GitHub
parent 4cd58dcd78
commit 25510f8e19
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -349,7 +349,7 @@ public class RadioController : IDisposable
freq = Math.Min(freq, 148.0f); freq = Math.Min(freq, 148.0f);
freq = Math.Max(freq, 144.0f); freq = Math.Max(freq, 144.0f);
string formattedFreq = freq.ToString("000.000", System.Globalization.CultureInfo.InvariantCulture); string formattedFreq = freq.ToString("000.0000", System.Globalization.CultureInfo.InvariantCulture);
return formattedFreq; return formattedFreq;
} }