From 52c234d791774d642480a21d1c5328cfe9607696 Mon Sep 17 00:00:00 2001 From: Mark Meserve Date: Mon, 13 Mar 2017 17:17:48 -0500 Subject: max2871: fix for not writing register 0 when required --- host/lib/usrp/common/max287x.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/host/lib/usrp/common/max287x.hpp b/host/lib/usrp/common/max287x.hpp index 2e87dc6ff..839ed77bc 100644 --- a/host/lib/usrp/common/max287x.hpp +++ b/host/lib/usrp/common/max287x.hpp @@ -900,6 +900,12 @@ void max287x::commit() } else { try { changed_regs = _regs.template get_changed_addrs (); + // register 0 must be written to apply double buffered fields + if (changed_regs.size() > 0) + { + changed_regs.insert(0); + } + for (int addr = 5; addr >= 0; addr--) { if (changed_regs.find(uint32_t(addr)) != changed_regs.end()) -- cgit v1.2.3