diff --git a/sdr_bladerf.c b/sdr_bladerf.c index 8577b9d..65ef2a8 100644 --- a/sdr_bladerf.c +++ b/sdr_bladerf.c @@ -23,6 +23,11 @@ #include #include +// Polyfill for the older bladerf API +#if defined(LIBBLADERF_API_VERSION) && (LIBBLADERF_API_VERSION < 0x02000000) +typedef unsigned int bladerf_frequency; +#endif + static struct { const char *device_str; const char *fpga_path; @@ -102,7 +107,7 @@ static void show_config() int status; unsigned rate; - unsigned freq; + bladerf_frequency freq; bladerf_lpf_mode lpf_mode; unsigned lpf_bw; bladerf_lna_gain lna_gain;