diff options
Diffstat (limited to 'uca-ufo-camera.c')
-rw-r--r-- | uca-ufo-camera.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/uca-ufo-camera.c b/uca-ufo-camera.c index 94d1d3c..61bf8a6 100644 --- a/uca-ufo-camera.c +++ b/uca-ufo-camera.c @@ -288,7 +288,12 @@ set_control_bit (UcaUfoCameraPrivate *priv, guint bit, gboolean set) pcilib_register_value_t flags; pcilib_register_value_t mask; - flags = read_register_value (priv->handle, name); + do { + flags = read_register_value (priv->handle, name); + usleep(10000); +// printf("%lx\n", flags); + } while ((flags&0xffffffff) == 0xffffffff); + mask = 1 << bit; if (set) |