Fixed typos in cli output and source code comments
This commit is contained in:
committed by
Andreas Eversberg
parent
97636aac1e
commit
a07764f0d9
@@ -135,7 +135,7 @@ void print_help(const char *arg0)
|
||||
printf(" Give modulation index of amplitude modulated signal. (default %.0f)\n", modulation_index);
|
||||
printf(" -E --emphasis <uS> | 0\n");
|
||||
printf(" Use given time constant of pre- and de-emphasis for frequency\n");
|
||||
printf(" modulation. Give 0 to disbale emphasis. (default = %.0f uS)\n", time_constant_us);
|
||||
printf(" modulation. Give 0 to disable emphasis. (default = %.0f uS)\n", time_constant_us);
|
||||
printf(" VHF broadcast 50 uS in Europe and 75 uS in the United States.\n");
|
||||
printf(" Other radio FM should use 530 uS, to cover complete speech spectrum.\n");
|
||||
printf(" -V --volume %.3f\n", volume);
|
||||
|
@@ -75,7 +75,7 @@ int radio_init(radio_t *radio, int latspl, int samplerate, double frequency, con
|
||||
radio->signal_bandwidth = bandwidth;
|
||||
break;
|
||||
case MODULATION_NONE:
|
||||
PDEBUG(DRADIO, DEBUG_ERROR, "Wrong modulation, plese fix!\n");
|
||||
PDEBUG(DRADIO, DEBUG_ERROR, "Wrong modulation, please fix!\n");
|
||||
goto error;
|
||||
}
|
||||
|
||||
@@ -333,7 +333,7 @@ int radio_init(radio_t *radio, int latspl, int samplerate, double frequency, con
|
||||
goto error;
|
||||
}
|
||||
|
||||
/* termporary I/Q/carrier buffers, used while demodulating */
|
||||
/* temporary I/Q/carrier buffers, used while demodulating */
|
||||
radio->I_buffer = calloc(latspl, sizeof(*radio->I_buffer));
|
||||
radio->Q_buffer = calloc(latspl, sizeof(*radio->Q_buffer));
|
||||
radio->carrier_buffer = calloc(latspl, sizeof(*radio->carrier_buffer));
|
||||
@@ -505,7 +505,7 @@ int radio_tx(radio_t *radio, float *baseband, int signal_num)
|
||||
}
|
||||
break;
|
||||
default:
|
||||
PDEBUG(DRADIO, DEBUG_ERROR, "Wrong audio mode, plese fix!\n");
|
||||
PDEBUG(DRADIO, DEBUG_ERROR, "Wrong audio mode, please fix!\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@@ -740,7 +740,7 @@ int radio_rx(radio_t *radio, float *baseband, int signal_num)
|
||||
}
|
||||
#endif
|
||||
if (!radio->rx_audio_mode) {
|
||||
PDEBUG(DRADIO, DEBUG_ERROR, "Wrong audio mode, plese fix!\n");
|
||||
PDEBUG(DRADIO, DEBUG_ERROR, "Wrong audio mode, please fix!\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user