diff options
Diffstat (limited to 'include/gnuradio/gr_block.h')
-rw-r--r-- | include/gnuradio/gr_block.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/gnuradio/gr_block.h b/include/gnuradio/gr_block.h index 5b3e9f2..3bd0cc0 100644 --- a/include/gnuradio/gr_block.h +++ b/include/gnuradio/gr_block.h @@ -66,12 +66,15 @@ struct GRAS_API gr_block : gnuradio::Block unsigned history(void) const { - return gnuradio::Block::history(); + //implement off-by-one history compat + return this->input_history()+1; } void set_history(unsigned history) { - gnuradio::Block::set_history(history); + //implement off-by-one history compat + if (history == 0) history++; + this->set_input_history(history-1); } void set_alignment(const size_t alignment); |