Skip to content

Commit e2c15b3

Browse files
committed
Warn when GenTL TriggerMode fails to enable
Add a warning log when setting GenTL TriggerMode to 'On' fails in non-strict mode. Previously the code only raised an exception in strict mode; now it emits a warning to inform users that the trigger mode may not be correctly configured when continuing without strict enforcement.
1 parent 9b61a3e commit e2c15b3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

dlclivegui/cameras/backends/gentl_backend.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,6 +1139,8 @@ def _configure_trigger_input(self, node_map, cfg, *, strict: bool = False) -> No
11391139
if not self._set_enum_node(node_map, "TriggerMode", "On", strict=strict):
11401140
if strict:
11411141
raise RuntimeError("Could not enable GenTL TriggerMode=On")
1142+
else:
1143+
LOG.warning("Could not enable GenTL TriggerMode=On; trigger mode may not be correctly configured.")
11421144

11431145
LOG.info(
11441146
"GenTL trigger input configured: role=%s selector=%s source=%s activation=%s",

0 commit comments

Comments
 (0)