Skip to content

Commit

Permalink
Merge branch 'libiio-rc1' of https://github.com/analogdevicesinc/iio-…
Browse files Browse the repository at this point in the history
…oscilloscope into libiio-rc1
  • Loading branch information
mhennerich committed Jun 3, 2014
2 parents 3f30715 + 20d4c76 commit aa41d71
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions iio_widget.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ static void iio_spin_button_update(struct iio_widget *widget)
/* if the setting is negative, and it can be set negative */
if (mag < 0 && min < 0)
freq *= -1;
else if (min >= 0)
freq *= -1;
}

gtk_spin_button_set_value(GTK_SPIN_BUTTON (widget->widget), freq);
Expand Down

0 comments on commit aa41d71

Please sign in to comment.