Hi Anil,
> Does a block always *have* to return something?
What you mean is the work function. I know this is a bit nit-picky, but
there has always been a lot of confusion caused by exactly that: The
block is the whole instance of a class derived from gr.block, and the
work() (or general_work()) i
Will something like this in the work function be correct?
self.consume(0, len(input_items[0])
if (something):
return
else:
out[:] = in0 ** 2 #example
return len(output_items[0])
___
Discuss-gnuradio mailing list
Discuss-gnuradio@g