diff options
Diffstat (limited to 'binding/radio_impl_null.c')
-rw-r--r-- | binding/radio_impl_null.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/binding/radio_impl_null.c b/binding/radio_impl_null.c index 8c28bca..a90835b 100644 --- a/binding/radio_impl_null.c +++ b/binding/radio_impl_null.c @@ -120,6 +120,10 @@ static uint32_t null_get_frequency(void) static void null_set_frequency(uint32_t frequency) { + if(frequency < known_fm_band_plans[bandplan].min || + frequency > known_fm_band_plans[bandplan].max) + return; + current_frequency = frequency; if(freq_callback) |