From 77f985f6a7b6a6f033fecc059f8b5ae272b00aaf Mon Sep 17 00:00:00 2001 From: Eran Date: Sun, 1 Oct 2023 08:55:44 +0300 Subject: [PATCH] fixup! add rs2_device_is_connected, rs2::device::is_connected --- src/rs.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rs.cpp b/src/rs.cpp index 2ad64cbf41..1dd273d53c 100644 --- a/src/rs.cpp +++ b/src/rs.cpp @@ -311,6 +311,7 @@ NOEXCEPT_RETURN(, device) int rs2_device_is_connected( const rs2_device * device, rs2_error ** error ) BEGIN_API_CALL { VALIDATE_NOT_NULL( device ); + VALIDATE_NOT_NULL( device->device ); return device->device->is_valid(); } HANDLE_EXCEPTIONS_AND_RETURN( 0, device )