diff --git a/firmware/common/tuning.c b/firmware/common/tuning.c index aefeafc4..66a01d76 100644 --- a/firmware/common/tuning.c +++ b/firmware/common/tuning.c @@ -110,7 +110,9 @@ bool set_freq(const uint64_t freq) success = false; } max2837_set_mode(prior_max2837_mode); - freq_cache = freq; + if( success ) { + freq_cache = freq; + } return success; }