From 9742e8ede5e35d535ab866a3a8884d14ff1df3b7 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 18 Nov 2019 09:38:08 -0800 Subject: examples: gpio: Fix minor issues - Use GPIO_BIT(x) instead of 1<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 (...) { } } -- cgit v1.2.3