Skip to content

Commit

Permalink
oscplot: remove error message for devices without triggers
Browse files Browse the repository at this point in the history
Signed-off-by: Cristina Suteu <cristina.suteu@analog.com>
  • Loading branch information
cristina-suteu committed Oct 11, 2023
1 parent 31d21bf commit d934ac7
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions oscplot.c
Expand Up @@ -2201,12 +2201,7 @@ static gboolean check_valid_setup_of_device(OscPlot *plot, const char *name)
"Device %s needs an impulse generator", name);
gtk_widget_set_tooltip_text(priv->capture_button, warning_text);
return false;
} else {
fprintf(stderr, "Failed to check if device: %s has trigger. Error:"
"%s\n", iio_device_get_name(dev) ?: iio_device_get_id(dev),
strerror(-ret));
}

/* Additional validation rules provided by the plugin of the device */
if (num_enabled != 2 || plot_type == TIME_PLOT)
return true;
Expand Down Expand Up @@ -6775,10 +6770,6 @@ static gboolean right_click_menu_show(OscPlot *plot, GdkEvent *event)
has_trigger = false;
if (ret == 0 && trigger) {
has_trigger = true;
} else {
fprintf(stderr, "Failed to check if device: %s has trigger. Error:"
"%s\n", iio_device_get_name(dev) ?: iio_device_get_id(dev),
strerror(-ret));
}

gtk_widget_set_sensitive(priv->device_trigger_menuitem,
Expand Down

0 comments on commit d934ac7

Please sign in to comment.