summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2012-07-27 10:20:04 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2012-07-27 10:20:04 +0200
commit78850db6a9c48364748021ec54973cdfe2a7cfb4 (patch)
tree2e63923f7e9ecc03ce8d70a421d312d2048f0ce6 /src
parent642a047ce60c9e071b9815d11ea9a81761598c9c (diff)
downloadlibuca-78850db6a9c48364748021ec54973cdfe2a7cfb4.tar.gz
libuca-78850db6a9c48364748021ec54973cdfe2a7cfb4.tar.bz2
libuca-78850db6a9c48364748021ec54973cdfe2a7cfb4.tar.xz
libuca-78850db6a9c48364748021ec54973cdfe2a7cfb4.zip
Fix sensor temperature conversion
Diffstat (limited to 'src')
-rw-r--r--src/cameras/uca-ufo-camera.c2
1 files changed, 1 insertions, 1 deletions
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: