From bad6fb080b774c680f6d1eda4e1a00dad5a8cd20 Mon Sep 17 00:00:00 2001 From: Dimitri Stolnikov Date: Wed, 25 Apr 2012 22:32:51 +0200 Subject: introduce api to configure crystal oscillator frequency Usually both, the RTL and the tuner ICs use the same clock. Changing the clock may make sense if you are applying an external clock to the tuner or to compensate the frequency (and samplerate) error caused by the original cheap crystal. This commit covers all tuner drivers except of the Fitipower FC2580 --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index a0af8db..9cdf2da 100644 --- a/src/main.c +++ b/src/main.c @@ -236,12 +236,12 @@ int main(int argc, char **argv) break; } - if (fwrite(buffer, 1, n_read, file) != n_read) { + if (fwrite(buffer, 1, n_read, file) != (size_t)n_read) { fprintf(stderr, "Short write, samples lost, exiting!\n"); break; } - if (n_read < out_block_size) { + if ((uint32_t)n_read < out_block_size) { fprintf(stderr, "Short read, samples lost, exiting!\n"); break; } -- cgit v1.3.1