]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
Fixed typo in old_protocol.c. Changed bas sample rate for RTLSDR.
authorJohn Melton G0ORX <john.d.melton@googlemail.com>
Tue, 17 Mar 2020 11:53:30 +0000 (11:53 +0000)
committerJohn Melton G0ORX <john.d.melton@googlemail.com>
Tue, 17 Mar 2020 11:53:30 +0000 (11:53 +0000)
old_protocol.c
soapy_discovery.c
soapy_protocol.c

index d030dd2e8193f38a13f32bccdf4250cd6cb9af05..2d9e6abed08769f271083900595a43d8a3272bdd 100644 (file)
@@ -864,7 +864,7 @@ static void process_ozy_input_buffer(unsigned char  *buffer) {
         }
         break;
       case 1:
-        if (device != DEVICE_HERMES_LITE_2) {
+        if (device != DEVICE_HERMES_LITE2) {
          //
          // HL2 uses C1/C2 for measuring the temperature
          //
index a9cfcf1a20de4217696e6b5b4929ee303e9d2038..330644df7608a5c3ded86f861f7b7297edb6fb83 100644 (file)
@@ -123,9 +123,9 @@ static void get_info(char *driver) {
   } else if(strcmp(driver,"plutosdr")==0) {
     sample_rate=768000;
   } else if(strcmp(driver,"rtlsdr")==0) {
-    sample_rate=1024000;
+    sample_rate=1048576;
   } else {
-    sample_rate=1024000;
+    sample_rate=1048576;
   }
 
   fprintf(stderr,"sample_rate selected %d\n",sample_rate);
index f266132a21d9c60950f24c89faa4be01cb917977..3b67dfbc56f85eb4656e5bc2ac4adc957ae1723c 100644 (file)
@@ -311,16 +311,16 @@ static void *receive_thread(void *arg) {
 fprintf(stderr,"soapy_protocol: receive_thread\n");
   while(running) {
     elements=SoapySDRDevice_readStream(soapy_device,rx_stream,buffs,max_samples,&flags,&timeNs,timeoutUs);
+    //fprintf(stderr,"soapy_protocol_receive_thread: SoapySDRDevice_readStream failed: max_samples=%d read=%d\n",max_samples,elements);
     if(elements<0) {
-      fprintf(stderr,"soapy_protocol_receive_thread: SoapySDRDevice_readStream failed: %s max_samples=%d read=%d\n",SoapySDR_errToStr(elements),max_samples,elements);
       continue;
     }
+    
     for(i=0;i<elements;i++) {
       rx->buffer[i*2]=(double)buffer[i*2];
       rx->buffer[(i*2)+1]=(double)buffer[(i*2)+1];
     }
 
-
     if(rx->resampler!=NULL) {
       int samples=xresample(rx->resampler);
       for(i=0;i<samples;i++) {