mirror of
https://github.com/greatscottgadgets/hackrf.git
synced 2026-03-03 14:06:49 +01:00
Don't update MAX2837 freq_cache unless set_freq() is successful.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user