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) {