adrv9032: fix nco source check

This commit is contained in:
Grant Meyerhoff 2026-08-14 11:38:39 -05:00 committed by mkoop-ni
parent b8d34e36be
commit e8079eca45

View File

@ -233,7 +233,7 @@ public:
}
check_adrv9032_error(_adrv9032_ctrl->set_chan_pll_source(dir, chan, src));
} else if (name == "NCO") {
if (src != "NC0") {
if (src != "NCO") {
throw uhd::value_error("Invalid NCO source: " + src);
// There isn't actually any NCO source to set, but don't throw the Invalid
// Name error since "NCO" is a valid name.