Fix "KHz" to "kHz"

10.8-maintenance
fgiudice98 2020-06-30 12:09:06 +02:00
parent 346c317ded
commit 95bc2977d9
1 changed files with 2 additions and 2 deletions

View File

@ -217,7 +217,7 @@ TABS.onboard_logging.initialize = function (callback) {
let loggingFrequencyUnit = "Hz"; let loggingFrequencyUnit = "Hz";
if (gcd(loggingFrequency, 1000) === 1000) { if (gcd(loggingFrequency, 1000) === 1000) {
loggingFrequency /= 1000; loggingFrequency /= 1000;
loggingFrequencyUnit = "KHz"; loggingFrequencyUnit = "kHz";
} }
loggingRatesSelect.append(`<option value="${i}">1/${2**i} (${loggingFrequency}${loggingFrequencyUnit})</option>`); loggingRatesSelect.append(`<option value="${i}">1/${2**i} (${loggingFrequency}${loggingFrequencyUnit})</option>`);
} }
@ -264,7 +264,7 @@ TABS.onboard_logging.initialize = function (callback) {
if (loggingRate !== Infinity) { if (loggingRate !== Infinity) {
if (gcd(loggingRate, 1000) === 1000) { if (gcd(loggingRate, 1000) === 1000) {
loggingRate /= 1000; loggingRate /= 1000;
loggingRateUnit = " KHz"; loggingRateUnit = " kHz";
} }
} }
loggingRatesSelect.append('<option value="' + loggingRates[i].num + '/' + loggingRates[i].denom + '">' loggingRatesSelect.append('<option value="' + loggingRates[i].num + '/' + loggingRates[i].denom + '">'