From 366bb0fc59dbe4d5f544908b0f3e31f8eb19f7c1 Mon Sep 17 00:00:00 2001 From: Egor Savkin Date: Mon, 16 Dec 2024 15:51:55 +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 e5218d8a1..c63b8ede5 100644 --- a/artiq/dashboard/moninj.py +++ b/artiq/dashboard/moninj.py @@ -399,7 +399,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) widget = _WidgetDesc(k, comment, _DDSWidget, (k, bus_channel, channel, v["class"], refclk, dds_cpld, pll, clk_div))