diff options
author | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2012-06-13 11:17:13 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2012-06-13 11:17:13 +0200 |
commit | 3e4783c72bf7d0c9b181d349c37708ffbebf183e (patch) | |
tree | 26451d8da33be2e83f30f6a94b0488d12f188c9a /src | |
parent | 480140b03b505e10632953cf5870b62b422fb6a9 (diff) | |
download | libuca-3e4783c72bf7d0c9b181d349c37708ffbebf183e.tar.gz libuca-3e4783c72bf7d0c9b181d349c37708ffbebf183e.tar.bz2 libuca-3e4783c72bf7d0c9b181d349c37708ffbebf183e.tar.xz libuca-3e4783c72bf7d0c9b181d349c37708ffbebf183e.zip |
Fix LU-7
We read the temperatures using unsigned data types which is absolute fail sauce
when encountering negative temperatures. Unfortunately, this happens with the
pco.4000.
Diffstat (limited to 'src')
-rw-r--r-- | src/cameras/uca-pco-camera.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cameras/uca-pco-camera.c b/src/cameras/uca-pco-camera.c index dc0908b..55a8f5d 100644 --- a/src/cameras/uca-pco-camera.c +++ b/src/cameras/uca-pco-camera.c @@ -20,7 +20,6 @@ #include <string.h> #include <libpco/libpco.h> #include <libpco/sc2_defs.h> -#include <fgrab_struct.h> #include <fgrab_prototyp.h> #include "uca-camera.h" #include "uca-pco-camera.h" @@ -826,7 +825,7 @@ static void uca_pco_camera_get_property(GObject *object, guint property_id, GVal case PROP_SENSOR_TEMPERATURE: { - guint32 ccd, camera, power; + gint32 ccd, camera, power; pco_get_temperature(priv->pco, &ccd, &camera, &power); g_value_set_double(value, ccd / 10.0); } |