Skip to content

Commit

Permalink
add pyrealsense2.device.is_connected()
Browse files Browse the repository at this point in the history
  • Loading branch information
maloel committed Sep 30, 2023
1 parent f67dbc4 commit 83bcc9d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wrappers/python/pyrs_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ void init_device(py::module &m) {
.def(py::init<>())
.def("__nonzero__", &rs2::device::operator bool) // Called to implement truth value testing in Python 2
.def("__bool__", &rs2::device::operator bool) // Called to implement truth value testing in Python 3
.def( "is_connected", &rs2::device::is_connected )
.def(BIND_DOWNCAST(device, debug_protocol))
.def(BIND_DOWNCAST(device, playback))
.def(BIND_DOWNCAST(device, recorder))
Expand Down

0 comments on commit 83bcc9d

Please sign in to comment.