1
0
mirror of https://github.com/mist-devel/mist-firmware.git synced 2026-02-27 00:40:00 +00:00

IDE: fix WritePacket if QSPI is enabled

This commit is contained in:
Gyorgy Szombathelyi
2025-06-02 14:10:12 +02:00
parent e36baf1b47
commit 0fbabb71b8

3
hdd.c
View File

@@ -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