aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples/gpio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/examples/gpio.cpp')
-rw-r--r--host/examples/gpio.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/examples/gpio.cpp b/host/examples/gpio.cpp
index 12bcd26f7..d4a188c66 100644
--- a/host/examples/gpio.cpp
+++ b/host/examples/gpio.cpp
@@ -214,9 +214,9 @@ int UHD_SAFE_MAIN(int argc, char* argv[])
std::cout << "Using GPIO bank: " << gpio << std::endl;
// subdev spec
- if (tx_subdev_spec != "")
+ if (!tx_subdev_spec.empty())
usrp->set_tx_subdev_spec(tx_subdev_spec);
- if (rx_subdev_spec != "")
+ if (!rx_subdev_spec.empty())
usrp->set_rx_subdev_spec(rx_subdev_spec);
std::cout << boost::format(" rx_subdev_spec: %s")
% usrp->get_rx_subdev_spec(0).to_string()