mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-03-04 10:38:17 +00:00
Merge branch 'next' of github.com:gnss-sdr/gnss-sdr into pps_lime
This commit is contained in:
commit
450397f1a9
@ -419,7 +419,7 @@ if(GNURADIO_RUNTIME_INCLUDE_DIRS)
|
||||
if(CMAKE_VERSION VERSION_GREATER 3.13)
|
||||
target_link_libraries(Gnuradio::filter INTERFACE Log4cpp::log4cpp)
|
||||
else()
|
||||
set(LOG4CPP_WITH_OLD_CMAKE TRUE)
|
||||
set_target_properties(Gnuradio::filter PROPERTIES INTERFACE_LINK_LIBRARIES Log4cpp::log4cpp)
|
||||
endif()
|
||||
endif()
|
||||
if(${_uses_spdlog})
|
||||
@ -431,8 +431,13 @@ if(GNURADIO_RUNTIME_INCLUDE_DIRS)
|
||||
TYPE REQUIRED
|
||||
)
|
||||
set(GNURADIO_USES_SPDLOG TRUE)
|
||||
target_link_libraries(Gnuradio::runtime INTERFACE spdlog::spdlog)
|
||||
target_link_libraries(Gnuradio::blocks INTERFACE spdlog::spdlog)
|
||||
if(CMAKE_VERSION VERSION_GREATER 3.13)
|
||||
target_link_libraries(Gnuradio::runtime INTERFACE spdlog::spdlog)
|
||||
target_link_libraries(Gnuradio::blocks INTERFACE spdlog::spdlog)
|
||||
else()
|
||||
set_target_properties(Gnuradio::runtime PROPERTIES INTERFACE_LINK_LIBRARIES spdlog::spdlog)
|
||||
set_target_properties(Gnuradio::blocks PROPERTIES INTERFACE_LINK_LIBRARIES spdlog::spdlog)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
@ -58,11 +58,10 @@ bool Monitor_Ephemeris_Udp_Sink::write_galileo_ephemeris(const std::shared_ptr<G
|
||||
for (const auto& endpoint : endpoints)
|
||||
{
|
||||
socket.open(endpoint.protocol(), error);
|
||||
socket.connect(endpoint, error);
|
||||
|
||||
try
|
||||
{
|
||||
if (socket.send(boost::asio::buffer(outbound_data)) == 0)
|
||||
if (socket.send_to(boost::asio::buffer(outbound_data), endpoint) == 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@ -95,11 +94,10 @@ bool Monitor_Ephemeris_Udp_Sink::write_gps_ephemeris(const std::shared_ptr<Gps_E
|
||||
for (const auto& endpoint : endpoints)
|
||||
{
|
||||
socket.open(endpoint.protocol(), error);
|
||||
socket.connect(endpoint, error);
|
||||
|
||||
try
|
||||
{
|
||||
if (socket.send(boost::asio::buffer(outbound_data)) == 0)
|
||||
if (socket.send_to(boost::asio::buffer(outbound_data), endpoint) == 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -57,11 +57,10 @@ bool Monitor_Pvt_Udp_Sink::write_monitor_pvt(const Monitor_Pvt* const monitor_pv
|
||||
for (const auto& endpoint : endpoints)
|
||||
{
|
||||
socket.open(endpoint.protocol(), error);
|
||||
socket.connect(endpoint, error);
|
||||
|
||||
try
|
||||
{
|
||||
if (socket.send(boost::asio::buffer(outbound_data)) == 0)
|
||||
if (socket.send_to(boost::asio::buffer(outbound_data), endpoint) == 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -56,11 +56,10 @@ bool Gnss_Synchro_Udp_Sink::write_gnss_synchro(const std::vector<Gnss_Synchro>&
|
||||
for (const auto& endpoint : endpoints)
|
||||
{
|
||||
socket.open(endpoint.protocol(), error);
|
||||
socket.connect(endpoint, error);
|
||||
|
||||
try
|
||||
{
|
||||
if (socket.send(boost::asio::buffer(outbound_data)) == 0)
|
||||
if (socket.send_to(boost::asio::buffer(outbound_data), endpoint) == 0)
|
||||
{
|
||||
std::cerr << "Gnss_Synchro_Udp_Sink sent 0 bytes\n";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user