Voice prompts: fixed extra leading zero when announcing the kHz part of a frequency

This commit is contained in:
Silvano Seva 2024-12-26 16:59:18 +01:00
parent 185d3f1a22
commit 27d04aab2b
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ void vp_queueFrequency(const freq_t freq)
{
char buffer[16];
int MHz = (freq / 1000000);
int kHz = ((freq % 1000000) / 100);
int kHz = ((freq % 1000000) / 10);
sniprintf(buffer, 16, "%d.%05d", MHz, kHz);