From 8b5d7d06e9cb2f8af2fbef4c7ad52f3461eee911 Mon Sep 17 00:00:00 2001 From: Egor Savkin Date: Tue, 17 Dec 2024 15:05:43 +0800 Subject: [PATCH] Fix moninj showing wrong frequency for urukuls with non-default clk_div Signed-off-by: Egor Savkin --- artiq/dashboard/moninj.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/dashboard/moninj.py b/artiq/dashboard/moninj.py index 3ee97b897..78365612e 100644 --- a/artiq/dashboard/moninj.py +++ b/artiq/dashboard/moninj.py @@ -412,7 +412,7 @@ def setup_from_ddb(ddb): bus_channel = ddb[spi_dev]["arguments"]["channel"] pll = v["arguments"]["pll_n"] refclk = ddb[dds_cpld]["arguments"]["refclk"] - clk_div = v["arguments"].get("clk_div", 0) + clk_div = ddb[dds_cpld]["arguments"].get("clk_div", 0) model = _DDSModel( v["class"], refclk, dds_cpld, pll, clk_div) widget = _WidgetDesc(k, comment, _DDSWidget, (k, bus_channel, channel, model)) description.add(widget)