diff options
author | mattprost <matt.prost@ni.com> | 2022-06-08 17:18:21 -0500 |
---|---|---|
committer | skooNI <60897865+skooNI@users.noreply.github.com> | 2022-07-20 15:57:20 -0500 |
commit | c741604b1e43047b45778bde13fb1342e66adfef (patch) | |
tree | a02ed989d8cf305316d1df9184dffa6f8384a501 /host/examples/gpio.cpp | |
parent | 6a3540ed463b7a42794d99d3f6417eba57f4f211 (diff) | |
download | uhd-c741604b1e43047b45778bde13fb1342e66adfef.tar.gz uhd-c741604b1e43047b45778bde13fb1342e66adfef.tar.bz2 uhd-c741604b1e43047b45778bde13fb1342e66adfef.zip |
examples: gpio: output before end of stream
The gpio values should be output before the stream ends. This matches
the behavior of other tests in this file and prevents strange logs for
passing tests.
Signed-off-by: mattprost <matt.prost@ni.com>
Diffstat (limited to 'host/examples/gpio.cpp')
-rw-r--r-- | host/examples/gpio.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/examples/gpio.cpp b/host/examples/gpio.cpp index 5ee504de1..5b3c9a9dc 100644 --- a/host/examples/gpio.cpp +++ b/host/examples/gpio.cpp @@ -625,8 +625,8 @@ int UHD_SAFE_MAIN(int argc, char* argv[]) failures += int(!check_rb_values(usrp->get_gpio_attr(gpio_bank, "READBACK"), GPIO_BIT(3), num_bits, loopback_num_bits)); - stream_helper.stop_stream(true, true); output_reg_values(gpio_bank, port, usrp, num_bits, has_src_api); + stream_helper.stop_stream(true, true); } std::cout << std::endl; |