Skip to content

Commit

Permalink
TittaLSLPy: messed up the optional argument to Sender.create()
Browse files Browse the repository at this point in the history
  • Loading branch information
dcnieho committed Dec 16, 2024
1 parent 84150ef commit d2ede4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LSL_streamer/TittaLSLPy/TittaLSLPy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,9 @@ PYBIND11_MODULE(MODULE_NAME, m)

// outlets
.def("create", [](TittaLSL::Sender& instance_, std::string stream_, std::optional<bool> doStartSending_) { return instance_.create(std::move(stream_), doStartSending_, true); },
"stream"_a, "do_start_sending"_a)
"stream"_a, py::arg_v("do_start_sending", std::nullopt, "None"))
.def("create", py::overload_cast<Titta::Stream, std::optional<bool>>(&TittaLSL::Sender::create),
"stream"_a, "do_start_sending"_a)
"stream"_a, py::arg_v("do_start_sending", std::nullopt, "None"))

.def("has_stream", [](const TittaLSL::Sender& instance_, std::string stream_) -> bool { return instance_.hasStream(std::move(stream_), true); },
"stream"_a)
Expand Down

0 comments on commit d2ede4c

Please sign in to comment.