]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
Re-inserted a piece of code in old_protocol.c that was
authorDL1YCF <dl1ycf@darc.de>
Sun, 16 Jan 2022 15:58:50 +0000 (16:58 +0100)
committerDL1YCF <dl1ycf@darc.de>
Sun, 16 Jan 2022 15:58:50 +0000 (16:58 +0100)
un-intentionally deleted in the latest commit

old_protocol.c

index fb5327decb13d3ff20891bfc6a76a61e37c0bcee..37d605d5f928069d0af6710351ecffc6ae1fc15d 100644 (file)
@@ -2088,6 +2088,17 @@ static void ozyusb_write(unsigned char* buffer,int length)
       break;
   }
 */
+  //
+  // DL1YCF:
+  // Although the METIS offset is not used for OZY, we have to maintain it
+  // since it triggers the "alternating" sending of C0=0 and C0!=0
+  // C+C packets in ozy_send_buffer().
+  //
+  if (metis_offset == 8) {
+    metis_offset = 520;
+  } else {
+    metis_offset = 8;
+  }
 }
 #endif