8000 memory type for alt flash fix · adafruit/circuitpython@448d13e · GitHub
[go: up one dir, main page]

Skip to content

Commit 448d13e

Browse files
committed
memory type for alt flash fix
1 parent 544b9e4 commit 448d13e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

atmel-samd/spi_flash.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,11 @@ void spi_flash_init(void) {
281281
|| response[1] == SPI_FLASH_JEDEC_MANUFACTURER_2
282282
#endif
283283
) &&
284-
response[2] == SPI_FLASH_JEDEC_MEMORY_TYPE &&
284+
(response[2] == SPI_FLASH_JEDEC_MEMORY_TYPE
285+
#ifdef SPI_FLASH_JEDEC_MANUFACTURER_2
286+
|| response[2] == SPI_FLASH_JEDEC_MEMORY_TYPE_2
287+
#endif
288+
) &&
285289
response[3] == SPI_FLASH_JEDEC_CAPACITY) {
286290
spi_flash_is_initialised = true;
287291
} else {

0 commit comments

Comments
 (0)
0