mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 08:37:25 -05:00
Closes #71 - frequency controller throws exception when exceeding min/max tuning limits of a tuner.
Updated code to show dialog to user whenever the tuning limit has been exceeded. Added new InvalidFrequencyException that includes the requested invalid frequency and the valid frequency limit that was exceeded
This commit is contained in:
@@ -515,7 +515,7 @@ public class HackRFTunerController extends TunerController
|
||||
* sample rates. However, since we're only using integral sample rates, we
|
||||
* simply invoke the setSampleRateManual method directly.
|
||||
*/
|
||||
public void setSampleRate( HackRFSampleRate rate ) throws UsbException
|
||||
public void setSampleRate( HackRFSampleRate rate ) throws UsbException, SourceException
|
||||
{
|
||||
setSampleRateManual( rate.getRate(), 1 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user