build fixes thx MattSR via CS

max
Max 5 years ago
parent 4cde5ac5d8
commit 7bdfe78aa0
  1. 2
      install.sh
  2. 4
      op25/gr-op25_repeater/lib/p25_frame_assembler_impl.cc

@ -12,7 +12,7 @@ fi
sudo apt-get update
sudo apt-get build-dep gnuradio
sudo apt-get install gnuradio gnuradio-dev gr-osmosdr librtlsdr-dev libuhd-dev libhackrf-dev libitpp-dev libpcap-dev cmake git swig
sudo apt-get install gnuradio gnuradio-dev gr-osmosdr librtlsdr-dev libuhd-dev libhackrf-dev libitpp-dev libpcap-dev cmake git swig build-essential pkg-config doxygen
mkdir build
cd build

@ -39,12 +39,12 @@ namespace gr {
void p25_frame_assembler_impl::p25p2_queue_msg(int duid)
{
static const char wbuf[2] = {0xff, 0xff}; // dummy NAC
static const unsigned char wbuf[2] = {0xff, 0xff}; // dummy NAC
if (!d_do_msgq)
return;
if (d_msg_queue->full_p())
return;
gr::message::sptr msg = gr::message::make_from_string(std::string(wbuf, 2), duid, 0, 0);
gr::message::sptr msg = gr::message::make_from_string(std::string((const char *)wbuf, 2), duid, 0, 0);
d_msg_queue->insert_tail(msg);
}

Loading…
Cancel
Save