dimensional-de / napi-canon-cameras

Node AddOn Api module for Canon cameras
GNU General Public License v3.0
51 stars 18 forks source link

ForLabel in aperture & shutter-speed sometimes returns inaccurate data for values affected by Custom Function (marked with '1/3') #9

Closed SamsonSmithC closed 8 months ago

SamsonSmithC commented 1 year ago

The ForLabel function in aperture.cc & shutter-speed.cc returns the first value that matches the label. Entries affected by the 'Exposure Level Increment' custom function all have 2 values mapped to the same label in no particular order. The means switching the Exposure Level Increment between 1/2 and 1/3, won't solve the issue, just change which values are wrong. Some values returned by this function will always be incorrect unless it references the camera's Exposure Level Increment to choose between the duplicate mappings.

Exposure Level Increment: Property ID: 9 Specifier: 257 Values:

ThomasWeinert commented 1 year ago

https://github.com/dimensional-de/napi-canon-cameras/commit/4566f27cdbcabb3508b38bf9f0a3b59049da86e9