From cdb0c46e6e41c196b83773efbed8c53b51c30576 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Mon, 4 Jul 2016 15:29:01 +0200 Subject: Track current pcilib --- uca-ufo-camera.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/uca-ufo-camera.c b/uca-ufo-camera.c index a5d5235..6957342 100644 --- a/uca-ufo-camera.c +++ b/uca-ufo-camera.c @@ -155,7 +155,7 @@ write_register_value (pcilib_t *handle, const gchar *name, pcilib_register_value } static int -event_callback(pcilib_event_id_t event_id, pcilib_event_info_t *info, void *user) +event_callback(pcilib_event_id_t event_id, const pcilib_event_info_t *info, void *user) { UcaCamera *camera = UCA_CAMERA(user); UcaUfoCameraPrivate *priv = UCA_UFO_CAMERA_GET_PRIVATE(camera); @@ -204,6 +204,9 @@ update_properties (UcaUfoCameraPrivate *priv) case PCILIB_REGISTER_RW1I: flags = G_PARAM_READWRITE; break; + case PCILIB_REGISTER_INCONSISTENT: + g_warning ("%s is an inconsistent register, don't know how to handle that", reg->name); + break; } value = read_register_value (priv->handle, reg->name); -- cgit v1.2.3