aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/multi_usrp.cpp
diff options
context:
space:
mode:
authorBrent Stapleton <brent.stapleton@ettus.com>2019-12-26 07:46:52 -0800
committerBrent Stapleton <brent.stapleton@ettus.com>2019-12-30 17:51:55 -0800
commit84e203d5a907826a56272d479de692f9196cacae (patch)
treeafd29b8220907e783b6a1278591e949475916d92 /host/lib/usrp/multi_usrp.cpp
parentcc49dc959a00bf7b6652a2b2c6d67497c942e30c (diff)
downloaduhd-84e203d5a907826a56272d479de692f9196cacae.tar.gz
uhd-84e203d5a907826a56272d479de692f9196cacae.tar.bz2
uhd-84e203d5a907826a56272d479de692f9196cacae.zip
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.
Diffstat (limited to 'host/lib/usrp/multi_usrp.cpp')
-rw-r--r--host/lib/usrp/multi_usrp.cpp2
1 files changed, 1 insertions, 1 deletions
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<uint64_t>(
+ return uint32_t(_tree->access<uint32_t>(
mb_root(mboard) / "gpio" / bank / attr).get());
}
return 0;