summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tempmodule/temperature.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tempmodule/temperature.c b/src/tempmodule/temperature.c
index 7986585..4f0a5f1 100644
--- a/src/tempmodule/temperature.c
+++ b/src/tempmodule/temperature.c
@@ -1,6 +1,11 @@
#include <stddef.h>
#include "temperature.h"
+struct temptuple {
+ short res; /* Resistance in ohms. */
+ short temp; /* Temperatures in 0.1°K. */
+};
+
/*
* formula by applying Ohms law:
*
@@ -19,11 +24,6 @@
* We shift the range by one to avoid division by zero.
*/
-struct temptuple {
- short res; /* Resistance in ohms. */
- short temp; /* Temperatures in 0.1°K. */
-};
-
int get_resistance(int64_t vt, int64_t ra)
{
++vt;