We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 544b9e4 + 448d13e commit dfd57e4Copy full SHA for dfd57e4
atmel-samd/spi_flash.c
@@ -281,7 +281,11 @@ void spi_flash_init(void) {
281
|| response[1] == SPI_FLASH_JEDEC_MANUFACTURER_2
282
#endif
283
) &&
284
- response[2] == SPI_FLASH_JEDEC_MEMORY_TYPE &&
+ (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
+ ) &&
289
response[3] == SPI_FLASH_JEDEC_CAPACITY) {
290
spi_flash_is_initialised = true;
291
} else {
0 commit comments