From ef9222d2095898d6929c17250a57eaf0f9113a8d Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Wed, 13 Jul 2016 12:28:01 +0200 Subject: Return TIMEOUT error if ETIME is returned --- uca-ufo-camera.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'uca-ufo-camera.c') diff --git a/uca-ufo-camera.c b/uca-ufo-camera.c index 7fb6781..a739e07 100644 --- a/uca-ufo-camera.c +++ b/uca-ufo-camera.c @@ -418,7 +418,7 @@ uca_ufo_camera_grab(UcaCamera *camera, gpointer data, GError **error) set_control_bit (priv, 2, FALSE); } - PCILIB_SET_ERROR_RETURN_FALSE (err, UCA_UFO_CAMERA_ERROR_NEXT_EVENT); + PCILIB_SET_ERROR_RETURN_FALSE (err, err == ETIME ? UCA_CAMERA_ERROR_TIMEOUT : UCA_UFO_CAMERA_ERROR_NEXT_EVENT); gpointer src = pcilib_get_data (priv->handle, event_id, PCILIB_EVENT_DATA, (size_t *) &err); -- cgit v1.2.3