summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorDimitri Stolnikov <horiz0n@gmx.net>2012-04-25 22:32:51 +0200
committerDimitri Stolnikov <horiz0n@gmx.net>2012-04-25 22:32:51 +0200
commitbad6fb080b774c680f6d1eda4e1a00dad5a8cd20 (patch)
tree66e4b25f5b3a2f374fbf81a51e4043dcb1d87926 /src/main.c
parent8a1d6d69bdba90195468eb9c666e72e3eed3fe27 (diff)
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
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
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;
}