Fix FSM at the IEEE 802.15.4 decoder
This commit is contained in:
parent
2019718b3f
commit
7a95b44475
|
@ -84,7 +84,6 @@ frame_decoder_impl::work(int noutput_items,
|
|||
gr_vector_void_star &output_items)
|
||||
{
|
||||
const void *in = input_items[0];
|
||||
|
||||
decoder_status_t status = d_decoder->decode(in, noutput_items);
|
||||
if (status.decode_success) {
|
||||
message_port_pub(pmt::mp("out"), status.data);
|
||||
|
|
|
@ -187,7 +187,7 @@ ieee802_15_4_variant_decoder::decode_const_len(const void *in, int len)
|
|||
status.consumed = search_preamble((const uint8_t *) in, len);
|
||||
break;
|
||||
case SEARCHING_SYNC:
|
||||
status.consumed = search_preamble((const uint8_t *) in, len);
|
||||
status.consumed = search_sync((const uint8_t *) in, len);
|
||||
break;
|
||||
case DECODING_PAYLOAD:
|
||||
decode_payload(status, (const uint8_t *) in, len);
|
||||
|
|
Loading…
Reference in New Issue