uhd/host/lib/include/uhdlib/utils/log.hpp
Martin Anderseck 7f6e8e3276 fbx: Add guided mode for X440
Since X440 is special in terms of operation in different Nyquist zones
users may stumble upon unexpected RF performance compared to other
devices if frequencies are chosen close to a Nyquist boundary. The
guided mode provides more information about the Nyquist zone in which
the chosen frequency is located in the info log. For disabling the
guided mode, `guided_mode=false` can be added to the UHD config file
in the "Global" section.
2024-06-11 10:20:08 +02:00

21 lines
463 B
C++

//
// Copyright 2018 Ettus Research, a National Instruments Company
//
// SPDX-License-Identifier: GPL-3.0-or-later
//
#pragma once
#include <uhd/utils/log.hpp>
#include <uhdlib/utils/prefs.hpp>
#define UHD_LOG_GUIDE(message) \
if (uhd::prefs::is_guided_mode()) { \
UHD_LOG_INFO("Guide", message); \
}
#define UHD_LOG_IF_GUIDED(statement) \
if (uhd::prefs::is_guided_mode()) { \
statement; \
}