Message ID | 20230612145653.138615-3-brgl@bgdev.pl |
---|---|
State | New |
Headers | show |
Series | bindings: cxx: fix potential glitch in gpiosetcxx | expand |
diff --git a/bindings/cxx/examples/gpiosetcxx.cpp b/bindings/cxx/examples/gpiosetcxx.cpp index dde5379..f46cb85 100644 --- a/bindings/cxx/examples/gpiosetcxx.cpp +++ b/bindings/cxx/examples/gpiosetcxx.cpp @@ -44,10 +44,9 @@ int main(int argc, char **argv) ::gpiod::line_settings() .set_direction(::gpiod::line::direction::OUTPUT) ) + .set_output_values(values) .do_request(); - request.set_values(values); - ::std::cin.get(); return EXIT_SUCCESS;