mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 16:47:31 -05:00
wip: #34 Adds the E4000 tuner editor and updates a few other tuner
editor pieces.
This commit is contained in:
@@ -19,7 +19,6 @@ package source.tuner.rtl.e4k;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
import javax.swing.JPanel;
|
||||
import javax.usb.UsbException;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
@@ -30,7 +29,6 @@ import org.usb4java.DeviceHandle;
|
||||
import org.usb4java.LibUsb;
|
||||
import org.usb4java.LibUsbException;
|
||||
|
||||
import settings.SettingsManager;
|
||||
import source.SourceException;
|
||||
import source.tuner.TunerType;
|
||||
import source.tuner.configuration.TunerConfiguration;
|
||||
@@ -110,8 +108,6 @@ public class E4KTunerController extends RTL2832TunerController
|
||||
|
||||
public static final byte CHFCALIB_CMD = (byte)0x01;
|
||||
|
||||
private E4KTunerEditorPanel mEditor;
|
||||
|
||||
public E4KTunerController( Device device,
|
||||
DeviceDescriptor deviceDescriptor,
|
||||
ThreadPoolManager threadPoolManager )
|
||||
@@ -252,16 +248,6 @@ public class E4KTunerController extends RTL2832TunerController
|
||||
}
|
||||
}
|
||||
|
||||
public JPanel getEditor( SettingsManager settingsManager )
|
||||
{
|
||||
if( mEditor == null )
|
||||
{
|
||||
mEditor = new E4KTunerEditorPanel( this, settingsManager );
|
||||
}
|
||||
|
||||
return mEditor;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the IF filters (mixer, channel and RC) to the correct filter setting
|
||||
* for the selected bandwidth/sample rate
|
||||
@@ -1070,7 +1056,7 @@ public class E4KTunerController extends RTL2832TunerController
|
||||
(byte)( ( temp & ~mask ) | ( value & mask ) ),
|
||||
controlI2CRepeater );
|
||||
|
||||
int temp2 = readE4KRegister( register, controlI2CRepeater );
|
||||
readE4KRegister( register, controlI2CRepeater );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user