From 67eeede4e16324990e1a6afc237a3f51b8edea39 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Mon, 24 Jan 2005 20:44:49 +0000 Subject: [PATCH] Bug #2004: Make DDC delay slightly longer. (Thomas J. Moore) --- hw/xfree86/i2c/xf86i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xfree86/i2c/xf86i2c.c b/hw/xfree86/i2c/xf86i2c.c index 77e3c2634..199519629 100644 --- a/hw/xfree86/i2c/xf86i2c.c +++ b/hw/xfree86/i2c/xf86i2c.c @@ -87,7 +87,7 @@ I2CUDelay(I2CBusPtr b, int usec) d_secs = (a_secs - b_secs); d_usecs = (a_usecs - b_usecs); diff = d_secs*1000000 + d_usecs; - } while (diff>0 && diff< (usec + 1)); + } while (diff>=0 && diff< (usec + 1)); } } #endif