1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-11 10:18:38 -04:00

Change settings from main context.

This commit is contained in:
John Greb
2014-12-02 19:00:12 +00:00
parent 9d18a9a1e9
commit 6704651786
4 changed files with 16 additions and 20 deletions
+4 -3
View File
@@ -9,6 +9,7 @@
* it under the terms of the GNU General Public Licence version 3.
*/
#include "fcdinput.h"
#include "fcdthread.h"
#include "hid-libusb.h"
#include "qthid.h"
@@ -54,20 +55,20 @@ void FCDThread::CloseSource()
fcd_handle = NULL;
}
void FCDThread::set_center_freq(double freq)
void FCDInput::set_center_freq(double freq)
{
if (fcdAppSetFreq(freq) == FCD_MODE_NONE)
qDebug("No FCD HID found for frquency change");
}
void FCDThread::set_bias_t(bool on)
void FCDInput::set_bias_t(bool on)
{
quint8 cmd = on ? 1 : 0;
fcdAppSetParam(FCD_CMD_APP_SET_BIAS_TEE, &cmd, 1);
}
void FCDThread::set_lna_gain(bool on)
void FCDInput::set_lna_gain(bool on)
{
quint8 cmd = on ? 1 : 0;