Skip to content

Commit

Permalink
enable controls (open-streams) in dds unit-tests using metadata-server
Browse files Browse the repository at this point in the history
  • Loading branch information
maloel committed Nov 2, 2023
1 parent d35048a commit f0f0535
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions unit-tests/dds/metadata-server.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
color_stream.init_options( [] )
color_stream.set_intrinsics( d435i.color_stream_intrinsics() )

def on_control( server, id, control, reply ):
# the control has already been output to debug by the calling code, as will the reply
return True # otherwise the control will be flagged as error

device_server.on_control( on_control )
device_server.init( [color_stream], [], {} )


Expand Down

0 comments on commit f0f0535

Please sign in to comment.