diff --git a/lib/ofdm_mac.cc b/lib/ofdm_mac.cc index b16dd2f..6f5ec7a 100644 --- a/lib/ofdm_mac.cc +++ b/lib/ofdm_mac.cc @@ -83,6 +83,7 @@ void app_in (pmt::pmt_t msg) { size_t msg_len; const char *msdu; + std::string str; if(pmt::is_eof_object(msg)) { message_port_pub(pmt::mp("phy out"), pmt::PMT_EOF); @@ -91,7 +92,6 @@ void app_in (pmt::pmt_t msg) { } else if(pmt::is_symbol(msg)) { - std::string str; str = pmt::symbol_to_string(msg); msg_len = str.length(); msdu = str.data();