]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
attempt to start pihpsdr faster with the first discovered device
authorRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Tue, 4 Jan 2022 12:10:11 +0000 (17:40 +0530)
committerRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Tue, 4 Jan 2022 12:10:11 +0000 (17:40 +0530)
discovery.c
protocols.c

index 7fdfaa1e9a867cbb99de2094be6bf4cffceb57a2..6fcf6e0604fde7870c636316c75327652ce9fc3d 100644 (file)
@@ -353,10 +353,10 @@ void discovery() {
     old_discovery();
   }
 
-  if(enable_protocol_2) {
-    status_text("Protocol 2 ... Discovering Devices");
-    new_discovery();
-  }
+  /* if(enable_protocol_2) { */
+  /*   status_text("Protocol 2 ... Discovering Devices"); */
+  /*   new_discovery(); */
+  /* } */
 
 #ifdef SOAPYSDR
   if(enable_soapy_protocol) {
@@ -622,7 +622,8 @@ fprintf(stderr,"showing device dialog\n");
     // autostart if one device and autostart enabled
     g_print("%s: devices=%d autostart=%d\n",__FUNCTION__,devices,autostart);
 
-    if(devices==1 && autostart) {
+    // if(devices==1 && autostart) {
+    if(autostart) {
         d=&discovered[0];
        if(d->status==STATE_AVAILABLE) {
           if(start_cb(NULL,NULL,(gpointer)d)) return;
index 006ab2da5ea415fdc4539f7619b8eb645871bea8..8334244bdcd673c97f0b03cee1b9851656757672 100644 (file)
@@ -86,7 +86,7 @@ void protocols_restore_state() {
   value=getProperty("enable_stemlab");
   if(value) enable_stemlab=atoi(value);
 #endif
-  autostart=FALSE;
+  autostart=TRUE;
   value=getProperty("autostart");
   if(value) autostart=atoi(value);