summaryrefslogtreecommitdiff
path: root/gnuradio-core/src
diff options
context:
space:
mode:
authorMarcus Leech2012-01-15 23:49:52 -0500
committerTom Rondeau2012-01-15 23:49:52 -0500
commit2a2411a598c222e2ef82b857c0b53e0a9d1daf3f (patch)
tree2787674c341c201b1eeaf168bcea58bf986cf25c /gnuradio-core/src
parent53407a4e5bea98ce4f2566968acb577ac0700dfc (diff)
downloadgnuradio-2a2411a598c222e2ef82b857c0b53e0a9d1daf3f.tar.gz
gnuradio-2a2411a598c222e2ef82b857c0b53e0a9d1daf3f.tar.bz2
gnuradio-2a2411a598c222e2ef82b857c0b53e0a9d1daf3f.zip
core: fix for off-by-one issue in strip chart. Increases buffer size for longer displays.
Diffstat (limited to 'gnuradio-core/src')
-rw-r--r--gnuradio-core/src/lib/io/gr_oscope_guts.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/gnuradio-core/src/lib/io/gr_oscope_guts.cc b/gnuradio-core/src/lib/io/gr_oscope_guts.cc
index ce7feca13..f1bdeb9c1 100644
--- a/gnuradio-core/src/lib/io/gr_oscope_guts.cc
+++ b/gnuradio-core/src/lib/io/gr_oscope_guts.cc
@@ -31,8 +31,7 @@
#include <math.h>
#include <assert.h>
-static const int OUTPUT_RECORD_SIZE = 2048; // must be power of 2
-
+static const int OUTPUT_RECORD_SIZE = 16384; // Must be power of 2
static inline int
wrap_bi (int buffer_index) // wrap buffer index
{
@@ -139,7 +138,7 @@ gr_oscope_guts::process_sample (const float *channel_data)
{
for (int i = 0; i < d_nchannels; i++)
{
- for (int j = OUTPUT_RECORD_SIZE-1; j >= 0; j--)
+ for (int j = OUTPUT_RECORD_SIZE-1; j > 0; j--)
{
d_buffer[i][j] = d_buffer[i][j-1];
}