diff options
author | Marcus Leech | 2012-01-15 23:49:52 -0500 |
---|---|---|
committer | Johnathan Corgan | 2012-01-16 00:30:47 -0800 |
commit | e9ba60e518193ddcbfb069270bb674b4e7964f25 (patch) | |
tree | 21b37d1b343381562ee33f99df9f4e5e268927a7 /gnuradio-core | |
parent | 1fc3b145a8cd8aa02cf31d71df483fe78759c18c (diff) | |
download | gnuradio-e9ba60e518193ddcbfb069270bb674b4e7964f25.tar.gz gnuradio-e9ba60e518193ddcbfb069270bb674b4e7964f25.tar.bz2 gnuradio-e9ba60e518193ddcbfb069270bb674b4e7964f25.zip |
core: fix for off-by-one issue in strip chart. Increases buffer size for longer displays.
Diffstat (limited to 'gnuradio-core')
-rw-r--r-- | gnuradio-core/src/lib/io/gr_oscope_guts.cc | 5 |
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]; } |