mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 08:37:25 -05:00
Converted frequency to long primitive type (from integer) in anticipation of HackRF support which requires frequencies greater than 2.147 GHz, which is the max hertz value that can be represented by an integer primitive.
This commit is contained in:
@@ -319,7 +319,7 @@ public class SpectralDisplayPanel extends JPanel
|
||||
* Receives frequency change events -- primarily from tuner components.
|
||||
*/
|
||||
@Override
|
||||
public void frequencyChanged( int frequency, int bandwidth )
|
||||
public void frequencyChanged( long frequency, int bandwidth )
|
||||
{
|
||||
mChannelPanel.frequencyChanged( frequency, bandwidth );
|
||||
mDFTProcessor.frequencyChanged( frequency, bandwidth );
|
||||
@@ -479,7 +479,7 @@ public class SpectralDisplayPanel extends JPanel
|
||||
contextMenu.add( new PauseItem( mWaterfallPanel, "Pause" ) );
|
||||
}
|
||||
|
||||
int frequency =
|
||||
long frequency =
|
||||
mChannelPanel.getFrequencyFromAxis( event.getX() );
|
||||
|
||||
if( event.getComponent() == mChannelPanel )
|
||||
@@ -757,10 +757,10 @@ public class SpectralDisplayPanel extends JPanel
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private ResourceManager mResourceManager;
|
||||
private int mFrequency;
|
||||
private long mFrequency;
|
||||
private DecoderType mDecoder;
|
||||
|
||||
public DecoderItem( ResourceManager manager, int frequency, DecoderType type )
|
||||
public DecoderItem( ResourceManager manager, long frequency, DecoderType type )
|
||||
{
|
||||
super( type.getDisplayString() );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user