aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/rfnoc/radio_control_impl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/rfnoc/radio_control_impl.cpp')
-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;