Skip to content

Commit

Permalink
D457 does not support Hue, use Gain instead
Browse files Browse the repository at this point in the history
  • Loading branch information
OhadMeir committed Oct 10, 2023
1 parent 61d6684 commit 1c5553f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions unit-tests/live/options/test-presets.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@
test.check( am_dev.get_depth_control().textureCountThreshold != 250 )

with test.closure( 'setting color options' ):
color_sensor.set_option( rs.option.hue, 123 )
test.check( color_sensor.get_option( rs.option.hue ) == 123 )
color_sensor.set_option( rs.option.gain, 123 )
test.check( color_sensor.get_option( rs.option.gain ) == 123 )

depth_sensor.set_option( rs.option.visual_preset, int(rs.rs400_visual_preset.default ) )
if product_line == "D400":
# D400 devices set color options as part of preset setting
test.check( color_sensor.get_option( rs.option.hue ) != 123 )
test.check( color_sensor.get_option( rs.option.gain ) != 123 )
elif product_line == "D500":
# D500 devices do not set color options as part of preset setting
test.check( color_sensor.get_option( rs.option.hue ) == 123 )
test.check( color_sensor.get_option( rs.option.gain ) == 123 )
else:
raise RuntimeError( 'unsupported product line' )

Expand Down

0 comments on commit 1c5553f

Please sign in to comment.