mirror of
https://github.com/EttusResearch/uhd.git
synced 2026-10-25 17:36:10 +00:00
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.
21 lines
463 B
C++
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; \
|
|
}
|