aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/camera/set_feature_value.py1
-rw-r--r--examples/interface/set_feature_value.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/examples/camera/set_feature_value.py b/examples/camera/set_feature_value.py
index c02f961..7086d75 100644
--- a/examples/camera/set_feature_value.py
+++ b/examples/camera/set_feature_value.py
@@ -20,6 +20,7 @@ if __name__ == '__main__':
print('"{}" was set to "{}"'.format(feature.name, feature.value))
# alternatively the feature value can be set as an object attribute
+ # note that this doesn't raise an error if the feature name doesn't exist
camera.ExposureAuto = feature.value
camera.close()
diff --git a/examples/interface/set_feature_value.py b/examples/interface/set_feature_value.py
index a9f32da..4eca205 100644
--- a/examples/interface/set_feature_value.py
+++ b/examples/interface/set_feature_value.py
@@ -20,6 +20,7 @@ if __name__ == '__main__':
print('"{}" was set to "{}"'.format(feature.name, feature.value))
# alternatively the feature value can be set as an object attribute
+ # note that this doesn't raise an error if the feature name doesn't exist
interface.InterfacePingPace = 3
interface.close()