diff options
author | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2004-01-30 07:12:35 +0000 |
---|---|---|
committer | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2004-01-30 07:12:35 +0000 |
commit | 59a314fd82aefb99aea2e3956248a928f55fa5e4 (patch) | |
tree | 9a58587d75c2e4334d8ce18f0a08858939920f1d /processor.c | |
parent | 34f02389e3006b036d679f1ff1dd997c6f9f9f08 (diff) | |
download | lcd4linux-59a314fd82aefb99aea2e3956248a928f55fa5e4.tar.gz |
[lcd4linux @ 2004-01-30 07:12:35 by reinelt]
HD44780 busy-flag support from Martin Hejl
loadavg() uClibc replacement from Martin Heyl
round() uClibc replacement from Martin Hejl
warning in i2c_sensors fixed
[
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@347 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to '')
-rw-r--r-- | processor.c | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/processor.c b/processor.c index bf4884f..afb0757 100644 --- a/processor.c +++ b/processor.c @@ -1,4 +1,4 @@ -/* $Id: processor.c,v 1.54 2004/01/29 04:40:02 reinelt Exp $ +/* $Id: processor.c,v 1.55 2004/01/30 07:12:35 reinelt Exp $ * * main data processing * @@ -22,6 +22,13 @@ * * * $Log: processor.c,v $ + * Revision 1.55 2004/01/30 07:12:35 reinelt + * HD44780 busy-flag support from Martin Hejl + * loadavg() uClibc replacement from Martin Heyl + * round() uClibc replacement from Martin Hejl + * warning in i2c_sensors fixed + * [ + * * Revision 1.54 2004/01/29 04:40:02 reinelt * every .c file includes "config.h" now * @@ -292,6 +299,17 @@ static struct telmon telmon; extern int tick, tack; static int tick_text, tick_bar, tick_icon, tick_gpo; +#ifdef DONT_HAVE_ROUND +double round(double x) { + static int y=0; + if (x<0) { + y = (x-0.5); + } else { + y = (x-0.5); + } + return((double)y); +} +#endif static double query (int token) { |