Skip to content

Commit

Permalink
Clear up operator precedence in Sony spotfocusarea and focusmagnify.
Browse files Browse the repository at this point in the history
  • Loading branch information
watsonmw committed Jan 31, 2025
1 parent 1f69e6e commit 2203f36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions camlibs/ptp2/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -9340,7 +9340,7 @@ _get_Sony_FocusMagnifySetting(CONFIG_GET_ARGS) {
gp_widget_set_name (*widget, menu->name);

currentVal = dpd->CurrentValue.u64;
x = (int)(currentVal >> 16 & 0xffff);
x = (int)((currentVal >> 16) & 0xffff);
y = (int)(currentVal & 0xffff);

// Current magnification level
Expand Down Expand Up @@ -9389,7 +9389,7 @@ _put_Sony_FocusMagnifySetting(CONFIG_PUT_ARGS)
uint64_t currentVal;

currentVal = dpd->CurrentValue.u64;
x = (int)(currentVal >> 16 & 0xffff);
x = (int)((currentVal >> 16) & 0xffff);
y = (int)(currentVal & 0xffff);

CR (gp_widget_get_value(widget, &xval));
Expand Down Expand Up @@ -9442,7 +9442,7 @@ _put_Sony_SpotFocusArea(CONFIG_PUT_ARGS) {
// Camera must be set to an autofocus mode and focusarea has to be set to one of the Spot Focus modes

currentVal = dpd->CurrentValue.u32;
x = (int)(currentVal >> 16 & 0xffff);
x = (int)((currentVal >> 16) & 0xffff);
y = (int)(currentVal & 0xffff);

CR (gp_widget_get_value(widget, &xval));
Expand Down

0 comments on commit 2203f36

Please sign in to comment.