mirror of
https://github.com/lupettohf/kv4p-sharp.git
synced 2025-01-19 01:36:30 +08:00
Update RadioController.cs to support 4 deciamal in frequency change
This commit is contained in:
parent
4cd58dcd78
commit
25510f8e19
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user