Small bug fix

The new[] deamon appeared again!
This commit is contained in:
Manolis Surligas 2016-05-17 20:18:20 +03:00
parent 7009f9cdb9
commit ed96930438
2 changed files with 1 additions and 4 deletions

View File

@ -50,7 +50,7 @@ namespace gr
d_repeat (repeat),
d_running (true)
{
d_buf = new uint8_t (msg.length ());
d_buf = new uint8_t[msg.length ()];
memcpy (d_buf, msg.c_str (), msg.length ());
message_port_register_out (pmt::mp ("msg"));
boost::shared_ptr<boost::thread> (

View File

@ -305,9 +305,6 @@ namespace gr
message_port_pub (pmt::mp ("pdu"),
pmt::make_blob(d_ax25_buf, ax25_frame_len));
}
else{
LOG_WARN("AX.25 decoding failed.");
}
/*
* We are done here. Whitening and FSK CRC is not supported