From 84e203d5a907826a56272d479de692f9196cacae Mon Sep 17 00:00:00 2001 From: Brent Stapleton Date: Thu, 26 Dec 2019 07:46:52 -0800 Subject: multi_usrp: unify GPIO access type GPIOs in the property tree are registered as uint32_t's, so the get_gpio_attr function should use that type as well. This resolves a property tree runtime_error when running the `gpio` example with a B2xx device. --- host/lib/usrp/multi_usrp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/lib/usrp/multi_usrp.cpp') diff --git a/host/lib/usrp/multi_usrp.cpp b/host/lib/usrp/multi_usrp.cpp index 1b39a2827..db21255ae 100644 --- a/host/lib/usrp/multi_usrp.cpp +++ b/host/lib/usrp/multi_usrp.cpp @@ -2218,7 +2218,7 @@ public: return val; } default: - return uint32_t(_tree->access( + return uint32_t(_tree->access( mb_root(mboard) / "gpio" / bank / attr).get()); } return 0; -- cgit v1.2.3