Commit 52cad13
committed
gphoto: fix range type manual focusing
- `gp_widget_set_value` expects float value for RANGE type widgets
- reset the value to 0 before performing the focusing (similar way to
RADIO type widget) otherwise the action is not performed by the
camera if the same value is used repeatedly
Tested with a Sony a64001 parent 9d77e2a commit 52cad13
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2328 | 2328 | | |
2329 | 2329 | | |
2330 | 2330 | | |
2331 | | - | |
| 2331 | + | |
2332 | 2332 | | |
2333 | 2333 | | |
2334 | 2334 | | |
| |||
2359 | 2359 | | |
2360 | 2360 | | |
2361 | 2361 | | |
| 2362 | + | |
| 2363 | + | |
| 2364 | + | |
| 2365 | + | |
| 2366 | + | |
2362 | 2367 | | |
2363 | 2368 | | |
2364 | 2369 | | |
| |||
0 commit comments