Using "--limesdr" or "--limesdr-mini" will also set device to "lime"

This is useful, if SoapySDR supports other SDR devices, like sound card. In
this case "--sdr-device-args driver=lime" must be given at command line. Now
this is done automatically with "--limesdr" or "--limesdr-mini".
pull/1/head
Andreas Eversberg 2 years ago
parent 3d9481177b
commit 7670b22118
  1. 2
      src/libmobile/main_mobile.c
  2. 2
      src/radio/main.c
  3. 2
      src/tv/main.c

@ -359,6 +359,7 @@ int main_mobile_handle_options(int short_option, int argi, char **argv)
if (allow_sdr) {
char *argv_lime[] = { argv[0],
"--sdr-soapy",
"--sdr-device-args", "driver=lime",
"--sdr-rx-antenna", "LNAL",
"--sdr-rx-gain", "30",
"--sdr-tx-gain", "30",
@ -374,6 +375,7 @@ int main_mobile_handle_options(int short_option, int argi, char **argv)
if (allow_sdr) {
char *argv_lime[] = { argv[0],
"--sdr-soapy",
"--sdr-device-args", "driver=lime",
"--sdr-rx-antenna", "LNAW",
"--sdr-tx-antenna", "BAND2",
"--sdr-rx-gain", "25",

@ -259,6 +259,7 @@ static int handle_options(int short_option, int argi, char **argv)
{
char *argv_lime[] = { argv[0],
"--sdr-soapy",
"--sdr-device-args", "driver=lime",
"--sdr-rx-antenna", "LNAL",
"--sdr-rx-gain", "50",
"--sdr-tx-gain", "50",
@ -272,6 +273,7 @@ static int handle_options(int short_option, int argi, char **argv)
{
char *argv_lime[] = { argv[0],
"--sdr-soapy",
"--sdr-device-args", "driver=lime",
"--sdr-rx-antenna", "LNAW",
"--sdr-tx-antenna", "BAND2",
"--sdr-rx-gain", "50",

@ -224,6 +224,7 @@ static int handle_options(int short_option, int argi, char **argv)
{
char *argv_lime[] = { argv[0],
"--sdr-soapy",
"--sdr-device-args", "driver=lime",
"--sdr-tx-gain", "50",
"--sdr-lo-offset", "-3000000",
"--sdr-bandwidth", "60000000",
@ -236,6 +237,7 @@ static int handle_options(int short_option, int argi, char **argv)
{
char *argv_lime[] = { argv[0],
"--sdr-soapy",
"--sdr-device-args", "driver=lime",
"--sdr-tx-antenna", "BAND2",
"--sdr-tx-gain", "50",
"--sdr-lo-offset", "-3000000",

Loading…
Cancel
Save