Skip to content

gphoto: fix range type manual focusing#1340

Merged
knro merged 1 commit into
indilib:masterfrom
MmAaXx500:focus-float
Jun 22, 2026
Merged

gphoto: fix range type manual focusing#1340
knro merged 1 commit into
indilib:masterfrom
MmAaXx500:focus-float

Conversation

@MmAaXx500

Copy link
Copy Markdown
Contributor
  • 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 a6400

 - `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 a6400
@knro

knro commented Jun 21, 2026

Copy link
Copy Markdown
Collaborator

Thank you! Let me see if this works for other cameras as well.

@MmAaXx500

Copy link
Copy Markdown
Contributor Author

Crosslinking kstars report:
EKOS: Relative focus adjustment for Sony cameras uses wrong Indi command https://bugs.kde.org/show_bug.cgi?id=516680

@knro knro merged commit 42945ee into indilib:master Jun 22, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants