diff --git a/examples/save_image.py b/examples/save_image.py index 3eaa126..9e53b61 100644 --- a/examples/save_image.py +++ b/examples/save_image.py @@ -11,6 +11,7 @@ Access, SaveTo, EdsObject, + PropertyEvent ) if os.name == "nt": @@ -60,9 +61,9 @@ def callback_object(event: ObjectEvent, object_handle: EdsObject) -> int: edsdk.OpenSession(cam) edsdk.SetObjectEventHandler(cam, ObjectEvent.All, callback_object) edsdk.SetPropertyData(cam, PropID.SaveTo, 0, SaveTo.Host) - print(edsdk.GetPropertyData(cam, PropID.SaveTo)) + print(edsdk.GetPropertyData(cam, PropID.SaveTo, 0)) - # Sets HD Capacity to an arbitrary big value + # Sets (Computer's) Capacity to an arbitrary big value edsdk.SetCapacity( cam, {"reset": True, "bytesPerSector": 512, "numberOfFreeClusters": 2147483647} )