From e334b284359a9615450a06592972485fc23f855e Mon Sep 17 00:00:00 2001 From: "Sanford Rockowitz (/shared/home/rock/dot_gitconfig)" Date: Tue, 23 Apr 2024 13:23:01 -0400 Subject: [PATCH] submaster_initializer(): set global setvcp_verify_default ddc_set_verify_setvcp() changes setting for current thread, but does not affect any other threads newly added global setverify_default controls initial setting for any newly created thread --- src/ddc/ddc_common_init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ddc/ddc_common_init.c b/src/ddc/ddc_common_init.c index 6cd2baa94..8e2164d70 100644 --- a/src/ddc/ddc_common_init.c +++ b/src/ddc/ddc_common_init.c @@ -413,7 +413,8 @@ submaster_initializer(Parsed_Cmd * parsed_cmd) { i2c_set_io_strategy_by_id(I2C_IO_STRATEGY_IOCTL); i2c_enable_cross_instance_locks(parsed_cmd->flags & CMD_FLAG_FLOCK); force_read_edid = !(parsed_cmd->flags2 & CMD_FLAG_TRY_GET_EDID_FROM_SYSFS); // extern in i2c_bus_core.h - ddc_set_verify_setvcp(parsed_cmd->flags & CMD_FLAG_VERIFY); + setvcp_verify_default = parsed_cmd->flags & CMD_FLAG_VERIFY; // for new threads + ddc_set_verify_setvcp(setvcp_verify_default); // set current thread set_output_level(parsed_cmd->output_level); // current thread set_default_thread_output_level(parsed_cmd->output_level); // for future threads enable_report_ddc_errors( parsed_cmd->flags & CMD_FLAG_DDCDATA );