Hello, I'm using this version of gphoto whit a Canon eos 450
This version of gphoto2 is using the following software versions and options:
gphoto2 2.5.4 gcc, popt(m), exif, cdk, aa, jpeg, readline
libgphoto2 2.5.4 all camlibs, gcc, ltdl, EXIF
libgphoto2_port 0.10.0 gcc, ltdl, no USB, serial without locking
it's the newest for a arm machine running debian 7.
when I run this script
for I in -11 -10 -9 -8- -7 -6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ;do
gphoto2 --set-config main/imgsettings/whitebalanceadjustb=$I
CURRENT=$(gphoto2 --get-config /main/imgsettings/whitebalanceadjustb | grep "Current")
echo "we set " $I " and we get " $CURRENT
done
I get this output, I suppose something is not ok assigning values or getting values back.
we set -11 and we get Current: -11
we set -10 and we get Current: -10
we set -9 and we get Current: -9
we set -8- and we get Current: -8
we set -7 and we get Current: -7
we set -6 and we get Current: -6
we set -5 and we get Current: -5
we set -4 and we get Current: -4
we set -3 and we get Current: -3
we set -2 and we get Current: -2
we set -1 and we get Current: -1
we set 0 and we get Current: 0
we set 1 and we get Current: 1
we set 2 and we get Current: 2
we set 3 and we get Current: 3
we set 4 and we get Current: 4
we set 5 and we get Current: 5
we set 6 and we get Current: 6
we set 7 and we get Current: 7
we set 8 and we get Current: 8
we set 9 and we get Current: 9
we set 10 and we get Current: 1
we set 11 and we get Current: 2
we set 12 and we get Current: 3
we set 13 and we get Current: 4
we set 14 and we get Current: 5
we set 15 and we get Current: 6
we set 16 and we get Current: 7
we set 17 and we get Current: 8
we set 18 and we get Current: 9
we set 19 and we get Current: 19
we set 20 and we get Current: 20
result of gphoto2 --get-config main/imgsettings/whitebalanceadjustb
[root@cn1:~]$ gphoto2 --get-config main/main/imgsettings/whitebalanceadjustb
Label: WhiteBalance Adjust B
Type: RADIO
Current: 20
Choice: 0 -9
Choice: 1 -8
Choice: 2 -7
Choice: 3 -6
Choice: 4 -5
Choice: 5 -4
Choice: 6 -3
Choice: 7 -2
Choice: 8 -1
Choice: 9 0
Choice: 10 1
Choice: 11 2
Choice: 12 3
Choice: 13 4
Choice: 14 5
Choice: 15 6
Choice: 16 7
Choice: 17 8
Choice: 18 9
best regards
Inco.
as --set-config magically detects if an index is used or a value, you have to specify if there is a mix up.
e.g.
--set-config-value xxx=y
many thanks Marcus
2014-11-27 23:18 GMT+01:00 Marcus Meissner marcusmeissner@users.sf.net:
Related
Bugs: #993