aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2022-01-07 14:35:43 +0100
committerAaron Rossetto <aaron.rossetto@ni.com>2022-01-07 08:04:14 -0600
commit10495ed427d1b3520f56fdb5b4d7c00173c97b83 (patch)
treecf8228b3f6e25468846281b0b6d254c84ac76f7f
parent2ff98cf43c801bc24d37fb9addae3dd77dac19ff (diff)
downloaduhd-10495ed427d1b3520f56fdb5b4d7c00173c97b83.tar.gz
uhd-10495ed427d1b3520f56fdb5b4d7c00173c97b83.tar.bz2
uhd-10495ed427d1b3520f56fdb5b4d7c00173c97b83.zip
rfnoc: radio: Fix comment in radio_control_impl
As Github user johnwstanford kindly points out, the comment was incorrect.
-rw-r--r--host/lib/rfnoc/radio_control_impl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/rfnoc/radio_control_impl.cpp b/host/lib/rfnoc/radio_control_impl.cpp
index 131c879b7..a5c69e229 100644
--- a/host/lib/rfnoc/radio_control_impl.cpp
+++ b/host/lib/rfnoc/radio_control_impl.cpp
@@ -991,7 +991,7 @@ void radio_control_impl::async_message_handler(
}
// Reminder: The address is calculated as:
// BASE + 64 * chan + addr_offset
- // BASE == 0x0000 for RX, 0x1000 for TX
+ // BASE == 0x0000 for TX, 0x1000 for RX
const uint32_t addr_base = (addr >= regmap::SWREG_RX_ERR) ? regmap::SWREG_RX_ERR
: regmap::SWREG_TX_ERR;
const uint32_t chan = (addr - addr_base) / regmap::SWREG_CHAN_OFFSET;