Skip to content

Commit

Permalink
add check
Browse files Browse the repository at this point in the history
  • Loading branch information
Nir-Az committed Jan 1, 2024
1 parent 9718b69 commit 644ba24
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import pyrealsense2 as rs
from rspy import test, log
import time

def close_resources(sensor):
if len(sensor.get_active_streams()) > 0:
Expand Down Expand Up @@ -83,7 +84,7 @@ def check_option_and_metadata_values(option, metadata, value_to_set, frame):
if option == rs.option.white_balance:
log.d("iteration", iteration, "setting explicitly enable_auto_white_balance to OFF")
color_sensor.set_option(rs.option.enable_auto_white_balance, 0)
log.d("enable_auto_white_balance new value we read back is:", color_sensor.get_option(rs.option.enable_auto_white_balance))
test.check_equal(color_sensor.get_option(rs.option.enable_auto_white_balance) , 0.0)
value_to_set = option_range.min
elif iteration == (num_of_frames_to_wait + 1):
value_to_set = option_range.max
Expand Down

0 comments on commit 644ba24

Please sign in to comment.