From 35e7434afbf825b540210ae1c72c49a18baecc5a Mon Sep 17 00:00:00 2001 From: reinelt Date: Sun, 19 Sep 2004 09:31:19 +0000 Subject: [lcd4linux @ 2004-09-19 09:31:19 by reinelt] HD44780 busy flag checking improved: fall back to busy-waiting if too many errors occur git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@491 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- timer.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'timer.c') diff --git a/timer.c b/timer.c index 54c9351..6b65574 100644 --- a/timer.c +++ b/timer.c @@ -1,4 +1,4 @@ -/* $Id: timer.c,v 1.10 2004/06/26 12:05:00 reinelt Exp $ +/* $Id: timer.c,v 1.11 2004/09/19 09:31:19 reinelt Exp $ * * generic timer handling * @@ -21,6 +21,9 @@ * * * $Log: timer.c,v $ + * Revision 1.11 2004/09/19 09:31:19 reinelt + * HD44780 busy flag checking improved: fall back to busy-waiting if too many errors occur + * * Revision 1.10 2004/06/26 12:05:00 reinelt * * uh-oh... the last CVS log message messed up things a lot... @@ -130,8 +133,6 @@ int timer_add (void (*callback)(void *data), void *data, const int interval, con int i; struct timeval now; - gettimeofday(&now, NULL); - /* find a free slot */ for (i=0; i