aboutsummaryrefslogtreecommitdiffstats
path: root/system.c
diff options
context:
space:
mode:
authorreinelt <>2001-03-09 12:14:24 +0000
committerreinelt <>2001-03-09 12:14:24 +0000
commit4a893211fd9907615d67d462ec183f7ca5f1500b (patch)
treeac42be1356905154dfb96320d173826773a126db /system.c
parent998fe30dc57559b00b4cef121ee45a0afd5c8d93 (diff)
downloadlcd4linux-4a893211fd9907615d67d462ec183f7ca5f1500b.tar.gz
[lcd4linux @ 2001-03-09 12:14:24 by reinelt]
minor cleanups
Diffstat (limited to 'system.c')
-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) {