From 1e5388e70de57aaaccd406a20a645f9b641fbeb4 Mon Sep 17 00:00:00 2001 From: Trung N Tran Date: Thu, 22 Feb 2018 10:57:33 -0800 Subject: fixup! x300,n230,e300,b200: changes to adapt to new usrp API --- host/lib/usrp/e300/e300_impl.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'host/lib/usrp/e300/e300_impl.cpp') diff --git a/host/lib/usrp/e300/e300_impl.cpp b/host/lib/usrp/e300/e300_impl.cpp index 24e9c6f82..b4011eda0 100644 --- a/host/lib/usrp/e300/e300_impl.cpp +++ b/host/lib/usrp/e300/e300_impl.cpp @@ -542,6 +542,12 @@ e300_impl::e300_impl(const uhd::device_addr_t &device_addr) fp_gpio->set_gpio_attr(attr.first, val); }); break; + case usrp::gpio_atr::GPIO_READBACK: + _tree->create(mb_path / "gpio" / "INT0" / "READBACK") + .set_publisher([this, fp_gpio](){ + return fp_gpio->read_gpio(); + }); + break; default: _tree->create(mb_path / "gpio" / "INT0" / attr.second) .set(0) @@ -550,10 +556,6 @@ e300_impl::e300_impl(const uhd::device_addr_t &device_addr) }); } } - _tree->create(mb_path / "gpio" / "INT0" / "READBACK") - .set_publisher([this, fp_gpio](){ - return fp_gpio->read_gpio(); - }); //////////////////////////////////////////////////////////////////// -- cgit v1.2.3