projects
/
pihpsdr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da8e588
)
clear IQ buffer upon restart
author
c vw
<dl1ycf@darc.de>
Mon, 6 Jan 2020 09:49:38 +0000
(10:49 +0100)
committer
c vw
<dl1ycf@darc.de>
Mon, 6 Jan 2020 09:49:38 +0000
(10:49 +0100)
old_protocol.c
patch
|
blob
|
history
diff --git
a/old_protocol.c
b/old_protocol.c
index a536b0e011dbe1105d5fd9ae898a35615c08b22d..f1387354d581de9d2e48ec71e09fc06a91ea7a01 100644
(file)
--- a/
old_protocol.c
+++ b/
old_protocol.c
@@
-1672,6
+1672,12
@@
static void metis_restart() {
// reset current rx
current_rx=0;
+ //
+ // When restarting, clear the IQ and audio samples
+ //
+ for(i=8;i<OZY_BUFFER_SIZE;i++) {
+ output_buffer[i]=0;
+ }
//
// Some (older) HPSDR apps on the RedPitaya have very small
// buffers that over-run if too much data is sent
@@
-1684,7
+1690,7
@@
static void metis_restart() {
ozy_send_buffer();
}
-
sleep(1
);
+
usleep(250000L
);
// start the data flowing
metis_start_stop(1);