Skip to content

Commit

Permalink
Add another check for manualfocus for Sony
Browse files Browse the repository at this point in the history
  • Loading branch information
knro committed Aug 5, 2021
1 parent 6a7a587 commit ed6f34f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions indi-gphoto/gphoto_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1814,9 +1814,10 @@ gphoto_driver *gphoto_open(Camera *camera, GPContext *context, const char *model
(gphoto->viewfinder_widget->value.toggle == 0) ? "Off" : "On");
}

if ((gphoto->focus_widget = find_widget(gphoto, "manualfocusdrive")) != nullptr)
if ((gphoto->focus_widget = find_widget(gphoto, "manualfocusdrive")) != nullptr ||
(gphoto->focus_widget = find_widget(gphoto, "manualfocus")) != nullptr)
{
DEBUGFDEVICE(device, INDI::Logger::DBG_DEBUG, "ManualFocusDrive Widget: %s", gphoto->focus_widget->name);
DEBUGFDEVICE(device, INDI::Logger::DBG_DEBUG, "Focus Widget: %s", gphoto->focus_widget->name);
}

// Check customfuncex widget to enable/disable mirror lockup.
Expand Down

0 comments on commit ed6f34f

Please sign in to comment.