From b3f023c229a896d8056c7b3bcf1ce5427379f2db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Wed, 31 Oct 2012 14:28:27 +0000 Subject: [PATCH] corrected FPGA copy loop --- BaS_GNU/sources/init_fpga.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaS_GNU/sources/init_fpga.c b/BaS_GNU/sources/init_fpga.c index 8e8ada4..f0f0b43 100644 --- a/BaS_GNU/sources/init_fpga.c +++ b/BaS_GNU/sources/init_fpga.c @@ -83,7 +83,7 @@ void init_fpga(void) MCF_GPIO_PODR_FEC1L |= FPGA_CLOCK; MCF_GPIO_PODR_FEC1L &= ~FPGA_CLOCK; } - } while ((!(MCF_GPIO_PPDSDR_FEC1L & FPGA_CONF_DONE)) || (fpga_data < (uint8_t *) FPGA_FLASH_DATA_END)); + } while ((!(MCF_GPIO_PPDSDR_FEC1L & FPGA_CONF_DONE)) && (fpga_data < (uint8_t *) FPGA_FLASH_DATA_END)); if (fpga_data < (uint8_t *) FPGA_FLASH_DATA_END) {