diff options
Diffstat (limited to 'host/examples/gpio.cpp')
-rw-r--r-- | host/examples/gpio.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/host/examples/gpio.cpp b/host/examples/gpio.cpp index 98471fc53..ccb5eb54e 100644 --- a/host/examples/gpio.cpp +++ b/host/examples/gpio.cpp @@ -320,7 +320,7 @@ int UHD_SAFE_MAIN(int argc, char* argv[]) // test user controlled GPIO and ATR idle by setting bit 4 high for 1 second std::cout << "\nTesting user controlled GPIO and ATR idle output..." << std::flush; - usrp->set_gpio_attr(gpio, "OUT", 1 << 4, 1 << 4); + usrp->set_gpio_attr(gpio, "OUT", GPIO_BIT(4), GPIO_BIT(4)); stop_time = usrp->get_time_now() + dwell_time; while (not stop_signal_called and usrp->get_time_now() < stop_time) { std::this_thread::sleep_for(std::chrono::milliseconds(100)); @@ -411,9 +411,9 @@ int UHD_SAFE_MAIN(int argc, char* argv[]) stop_time = usrp->get_time_now() + dwell_time; while (not stop_signal_called and usrp->get_time_now() < stop_time) { try { - tx_stream->send(rx_buffs, nsamps_per_buff, tx_md, timeout); + tx_stream->send(tx_buffs, nsamps_per_buff, tx_md, timeout); tx_md.start_of_burst = false; - rx_stream->recv(tx_buffs, nsamps_per_buff, rx_md, timeout); + rx_stream->recv(rx_buffs, nsamps_per_buff, rx_md, timeout); } catch (...) { } } |