gphoto2 icon indicating copy to clipboard operation
gphoto2 copied to clipboard

Inconsistent type-value pairs for eosmoviemode, liveviewsize, popupflash, and uilock

Open erdmann opened this issue 10 months ago • 1 comments

Describe the bug

The types reported by gphoto2 for the properties named in the subject seem to be inconsistent with their reported values.

Specifically, eosmoviemode, popupflash, and uilock all report as type TOGGLE but currently have values of 2 for me, suggesting that they're not just toggles since all the other toggles have values of 0 or 1. Additionally, the reported current value of liveviewsize (the string "val 0") isn't equal to any of the listed choices ("Large", "Medium", and "Small"). See below for details.

Name the camera If this is camera specific, include the camera name as shown by gphoto2 --auto-detect or USB IDs

$ gphoto2 --auto-detect 
Model                          Port                                            
----------------------------------------------------------
Canon EOS 5DS R                usb:020,011     

libgphoto2 and gphoto2 version

$ gphoto2 --version
gphoto2 2.5.28

Copyright (c) 2000-2021 Marcus Meissner and others

gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may
redistribute copies of gphoto2 under the terms of the GNU General Public
License. For more information about these matters, see the files named COPYING.

This version of gphoto2 is using the following software versions and options:
gphoto2         2.5.28         clang, popt(m), exif, no cdk, no aa, jpeg, readline
libgphoto2      2.5.30         standard camlibs, clang, no ltdl, EXIF
libgphoto2_port 0.12.1         iolibs: disk ptpip serial usb1, clang, no ltdl, EXIF, USB, serial without locking

To Reproduce

The following one-liner illustrates the issue. these four properties are anomalous; they're the only ones that don't match any of the values that are nominally associated with their types; I'm expecting that TOGGLE variables will always have values of 0 or 1 and that RADIO values will always have a current value that is among the listed choices.

$ gphoto2 --list-config | grep -E 'eosmoviemode|popupflash|uilock|liveviewsize' | parallel -j 1 "echo {} && gphoto2 --get-config {} && echo"
/main/actions/uilock
Label: UI Lock
Readonly: 0
Type: TOGGLE
Current: 2
END

/main/actions/popupflash
Label: Popup Flash
Readonly: 0
Type: TOGGLE
Current: 2
END

/main/actions/eosmoviemode
Label: Movie Mode
Readonly: 0
Type: TOGGLE
Current: 2
END

/main/capturesettings/liveviewsize
Label: Live View Size
Readonly: 0
Type: RADIO
Current: val 0
Choice: 0 Large
Choice: 1 Medium
Choice: 2 Small
END

Thank you very much for an excellent library, and many thanks in advance for your help!

erdmann avatar Aug 27 '23 13:08 erdmann