mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2024-11-10 04:37:37 +01:00
rtl_fm/rtl_test: fix build with MSVC after recent changes
Signed-off-by: Steve Markgraf <steve@steve-m.de>
This commit is contained in:
parent
ad4a029405
commit
4f31e5f560
@ -783,11 +783,12 @@ static void rtlsdr_callback(unsigned char *buf, uint32_t len, void *ctx)
|
||||
{
|
||||
int i;
|
||||
struct dongle_state *s = ctx;
|
||||
struct demod_state *d = s->demod_target;
|
||||
|
||||
if (do_exit) {
|
||||
return;}
|
||||
if (!ctx) {
|
||||
return;}
|
||||
struct demod_state *d = s->demod_target;
|
||||
if (s->mute) {
|
||||
for (i=0; i<s->mute; i++) {
|
||||
buf[i] = 127;}
|
||||
|
@ -149,6 +149,7 @@ static void ppm_clock_init(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifndef _WIN32
|
||||
static int ppm_report(void)
|
||||
{
|
||||
int real_rate;
|
||||
@ -158,6 +159,7 @@ static int ppm_report(void)
|
||||
real_rate = (int)(ppm_total * 1000000000L / ns);
|
||||
return (int)round((double)(1000000 * (real_rate - (int)samp_rate)) / (double)samp_rate);
|
||||
}
|
||||
#endif
|
||||
|
||||
static void ppm_test(uint32_t len)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user