aboutsummaryrefslogtreecommitdiffstats
path: root/system.c
diff options
context:
space:
mode:
authorreinelt <>2000-03-23 07:24:48 +0000
committerreinelt <>2000-03-23 07:24:48 +0000
commit53195ac9c4d7426fa9d8806621370c265aeb3fe5 (patch)
treeebd49cfda4012cdd484e35799fdf2fdaff7a5dfa /system.c
parentaf243c0321c8eff1fcf1384d105333ae4e243f67 (diff)
downloadlcd4linux-53195ac9c4d7426fa9d8806621370c265aeb3fe5.tar.gz
[lcd4linux @ 2000-03-23 07:24:48 by reinelt]
PPM driver up and running (but slow!)
Diffstat (limited to 'system.c')
-rw-r--r--system.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/system.c b/system.c
index a666e60..b8c71b6 100644
--- a/system.c
+++ b/system.c
@@ -1,4 +1,4 @@
-/* $Id: system.c,v 1.7 2000/03/18 08:07:04 reinelt Exp $
+/* $Id: system.c,v 1.8 2000/03/23 07:24:48 reinelt Exp $
*
* system status retreivement
*
@@ -20,6 +20,10 @@
*
*
* $Log: system.c,v $
+ * Revision 1.8 2000/03/23 07:24:48 reinelt
+ *
+ * PPM driver up and running (but slow!)
+ *
* Revision 1.7 2000/03/18 08:07:04 reinelt
*
* vertical bars implemented
@@ -503,10 +507,9 @@ int Sensor (int index, double *val, double *min, double *max)
}
snprintf(buffer, 32, "Sensor%d_min", index);
- min_buf[index]=atof(cfg_get(buffer));
+ min_buf[index]=atof(cfg_get(buffer)?:"0");
snprintf(buffer, 32, "Sensor%d_max", index);
- max_buf[index]=atof(cfg_get(buffer));
- if (max_buf[index]==0.0) max_buf[index]=100.0;
+ max_buf[index]=atof(cfg_get(buffer)?:"100");
fd[index]=open(sensor[index], O_RDONLY);
if (fd[index]==-1) {