From 78850db6a9c48364748021ec54973cdfe2a7cfb4 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Fri, 27 Jul 2012 10:20:04 +0200 Subject: Fix sensor temperature conversion --- src/cameras/uca-ufo-camera.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/cameras/uca-ufo-camera.c b/src/cameras/uca-ufo-camera.c index 66a42c4..09704af 100644 --- a/src/cameras/uca-ufo-camera.c +++ b/src/cameras/uca-ufo-camera.c @@ -358,7 +358,7 @@ uca_ufo_camera_get_property(GObject *object, guint property_id, GValue *value, G guint32 temperature; temperature = read_register_value (priv->handle, "sensor_temperature"); - g_value_set_double (value, a * temperature - b); + g_value_set_double (value, a * (temperature - b)); } break; case PROP_FPGA_TEMPERATURE: -- cgit v1.2.3