If disabled, make sure we don't try calling rade_text_* with a null pointer.
parent
2b45f3d548
commit
449a39be67
|
@ -110,12 +110,12 @@ std::shared_ptr<short> RADEReceiveStep::execute(std::shared_ptr<short> inputSamp
|
|||
int hasEooOut = 0;
|
||||
float eooOut[rade_n_eoo_bits(dv_)];
|
||||
nout = rade_rx(dv_, features_out, &hasEooOut, eooOut, input_buf_cplx);
|
||||
if (hasEooOut)
|
||||
if (hasEooOut && textPtr_ != nullptr)
|
||||
{
|
||||
// Handle RX of bits from EOO.
|
||||
rade_text_rx(textPtr_, eooOut, rade_n_eoo_bits(dv_) / 2);
|
||||
}
|
||||
else
|
||||
else if (!hasEooOut)
|
||||
{
|
||||
if (featuresFile_)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue