aboutsummaryrefslogtreecommitdiffstats
path: root/system.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2001-03-09 12:14:24 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2001-03-09 12:14:24 +0000
commit9798af2267cd73c68b0ef22e9d2b27eac1aba2f5 (patch)
treeac42be1356905154dfb96320d173826773a126db /system.c
parent824e3605cf8644295dc837a17f329c2e2bd619a3 (diff)
downloadlcd4linux-9798af2267cd73c68b0ef22e9d2b27eac1aba2f5.tar.gz
[lcd4linux @ 2001-03-09 12:14:24 by reinelt]
minor cleanups git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@104 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to '')
-rw-r--r--system.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/system.c b/system.c
index c0d0aa6..080956a 100644
--- a/system.c
+++ b/system.c
@@ -1,4 +1,4 @@
-/* $Id: system.c,v 1.20 2001/03/02 20:18:12 reinelt Exp $
+/* $Id: system.c,v 1.21 2001/03/09 12:14:24 reinelt Exp $
*
* system status retreivement
*
@@ -20,6 +20,10 @@
*
*
* $Log: system.c,v $
+ * Revision 1.21 2001/03/09 12:14:24 reinelt
+ *
+ * minor cleanups
+ *
* Revision 1.20 2001/03/02 20:18:12 reinelt
*
* allow compile on systems without net/if_ppp.h
@@ -749,8 +753,11 @@ int Sensor (int index, double *val, double *min, double *max)
snprintf(buffer, 32, "Sensor%d_min", index);
min_buf[index]=atof(cfg_get(buffer)?:"0");
+ *min=min_buf[index];
+
snprintf(buffer, 32, "Sensor%d_max", index);
max_buf[index]=atof(cfg_get(buffer)?:"100");
+ *max=max_buf[index];
fd[index]=open(sensor[index], O_RDONLY);
if (fd[index]==-1) {