memory type for alt flash fix

This commit is contained in:
ladyada 2018-01-30 01:24:28 -05:00
parent 544b9e4ba0
commit 448d13e7b4

View File

@ -281,7 +281,11 @@ void spi_flash_init(void) {
|| response[1] == SPI_FLASH_JEDEC_MANUFACTURER_2
#endif
) &&
response[2] == SPI_FLASH_JEDEC_MEMORY_TYPE &&
(response[2] == SPI_FLASH_JEDEC_MEMORY_TYPE
#ifdef SPI_FLASH_JEDEC_MANUFACTURER_2
|| response[2] == SPI_FLASH_JEDEC_MEMORY_TYPE_2
#endif
) &&
response[3] == SPI_FLASH_JEDEC_CAPACITY) {
spi_flash_is_initialised = true;
} else {