From 3e4783c72bf7d0c9b181d349c37708ffbebf183e Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Wed, 13 Jun 2012 11:17:13 +0200 Subject: 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. --- src/cameras/uca-pco-camera.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/cameras/uca-pco-camera.c') 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 #include #include -#include #include #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); } -- cgit v1.2.3