Use 'kHz' (not 'KHz') consistently.

This commit is contained in:
Uwe Hermann 2010-05-27 01:51:55 +02:00
parent 49d0ce50d0
commit 38ba252251
2 changed files with 3 additions and 3 deletions

View File

@ -194,7 +194,7 @@ static int __analyzer_set_freq(libusb_device_handle *devh, int freq, int scale)
reg0 = 5;
reg2 = 64;
break;
case FREQ_SCALE_KHZ: /* KHz */
case FREQ_SCALE_KHZ: /* kHz */
if (freq >= 500 && freq < 1000) {
reg0 = freq * 0.01;
divisor = 5;

View File

@ -26,7 +26,7 @@
/**
* Convert a numeric samplerate value to its "natural" string representation.
*
* E.g. a value of 3000000 would be converted to "3 MHz", 20000 to "20 KHz".
* E.g. a value of 3000000 would be converted to "3 MHz", 20000 to "20 kHz".
*
* @param samplerate The samplerate in Hz.
* @return A malloc()ed string representation of the samplerate value,
@ -46,7 +46,7 @@ char *sigrok_samplerate_string(uint64_t samplerate)
else if (samplerate >= MHZ(1))
r = snprintf(o, 30, "%" PRIu64 " MHz", samplerate / 1000000);
else if (samplerate >= KHZ(1))
r = snprintf(o, 30, "%" PRIu64 " KHz", samplerate / 1000);
r = snprintf(o, 30, "%" PRIu64 " kHz", samplerate / 1000);
else
r = snprintf(o, 30, "%" PRIu64 " Hz", samplerate);