diff options
author | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2012-07-27 10:20:04 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2012-07-27 10:20:04 +0200 |
commit | 78850db6a9c48364748021ec54973cdfe2a7cfb4 (patch) | |
tree | 2e63923f7e9ecc03ce8d70a421d312d2048f0ce6 /src | |
parent | 642a047ce60c9e071b9815d11ea9a81761598c9c (diff) | |
download | uca-78850db6a9c48364748021ec54973cdfe2a7cfb4.tar.gz uca-78850db6a9c48364748021ec54973cdfe2a7cfb4.tar.bz2 uca-78850db6a9c48364748021ec54973cdfe2a7cfb4.tar.xz uca-78850db6a9c48364748021ec54973cdfe2a7cfb4.zip |
Fix sensor temperature conversion
Diffstat (limited to 'src')
-rw-r--r-- | src/cameras/uca-ufo-camera.c | 2 |
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: |