From 6f8034a742efec6fb7bb805f96422da0c698166f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Wed, 31 Oct 2012 20:35:39 +0000 Subject: [PATCH] now really fixed hang in dvi_on() --- sources/sysinit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sources/sysinit.c b/sources/sysinit.c index d06bfde..b5aff50 100644 --- a/sources/sysinit.c +++ b/sources/sysinit.c @@ -632,8 +632,8 @@ void dvi_on(void) { MCF_I2C_I2CR = 0x80; // stop dummyByte = MCF_I2C_I2DR; // dummy read - - } while (receivedByte != 0xbf && num_tries++ < 10); + num_tries++; + } while ((receivedByte != 0xbf) && (num_tries < 10)); if (num_tries >= 10) { xprintf("FAILED!\r\n"); @@ -813,7 +813,7 @@ void initialize_hardware(void) { } while (src < end); /* we have copied a code area, so flush the caches */ - flush_and_invalidate_caches(); + //flush_and_invalidate_caches(); /* jump into the BaS in RAM */ extern void BaS(void);