2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 11:18:27 +08:00

Fix moninj showing wrong frequency for urukuls with non-default clk_div

Signed-off-by: Egor Savkin <es@m-labs.hk>
This commit is contained in:
Egor Savkin 2024-12-16 15:51:55 +08:00 committed by Sébastien Bourdeauducq
parent c65520ab01
commit 366bb0fc59

View File

@ -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))