From 0fbabb71b8483796cd5ca57fd791d3243bb2fd74 Mon Sep 17 00:00:00 2001 From: Gyorgy Szombathelyi <8644936+gyurco@users.noreply.github.com> Date: Mon, 2 Jun 2025 14:10:12 +0200 Subject: [PATCH] IDE: fix WritePacket if QSPI is enabled --- hdd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hdd.c b/hdd.c index 2e3e8d3..bcf6c89 100644 --- a/hdd.c +++ b/hdd.c @@ -353,7 +353,7 @@ static void WritePacket(unsigned char unit, const unsigned char *buf, unsigned s qspi_write_block(buf, bytes); qspi_end(); } else { -#else +#endif EnableFpga(); SPI(CMD_IDE_DATA_WR); // write data command SPI(0x00); @@ -363,7 +363,6 @@ static void WritePacket(unsigned char unit, const unsigned char *buf, unsigned s SPI(0x00); spi_write(buf, bytes); DisableFpga(); -#endif #ifdef HAVE_QSPI } #endif