summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2016-07-04 15:29:01 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2016-07-04 15:56:24 +0200
commitcdb0c46e6e41c196b83773efbed8c53b51c30576 (patch)
tree5941c31766297f1fdee41467ddcb8f1a36548163
parent5553af504a38a7671fbba8ea2389de8852f82121 (diff)
downloaduca-ufo-cdb0c46e6e41c196b83773efbed8c53b51c30576.tar.gz
uca-ufo-cdb0c46e6e41c196b83773efbed8c53b51c30576.tar.bz2
uca-ufo-cdb0c46e6e41c196b83773efbed8c53b51c30576.tar.xz
uca-ufo-cdb0c46e6e41c196b83773efbed8c53b51c30576.zip
Track current pcilib
-rw-r--r--uca-ufo-camera.c5
1 files changed, 4 insertions, 1 deletions
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);