trying to fix "0.000 MHz" output bug that only affects certain people

This commit is contained in:
Michael Ossmann
2013-06-26 12:43:59 -06:00
parent dc8738d9b2
commit 474c40b8c2

View File

@ -627,7 +627,7 @@ int main(int argc, char** argv) {
return EXIT_FAILURE;
}
printf("call hackrf_set_freq(%lu Hz/%.03f MHz)\n", freq_hz, ((float)freq_hz/(float)FREQ_ONE_MHZ) );
printf("call hackrf_set_freq(%lu Hz/%.03f MHz)\n", freq_hz, ((double)freq_hz/(double)FREQ_ONE_MHZ) );
result = hackrf_set_freq(device, freq_hz);
if( result != HACKRF_SUCCESS ) {
printf("hackrf_set_freq() failed: %s (%d)\n", hackrf_error_name(result), result);