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.
1 parent 9e01bb2 commit 8b6587aCopy full SHA for 8b6587a
supervisor/shared/external_flash/external_flash.c
@@ -244,13 +244,14 @@ void supervisor_flash_init(void) {
244
do {
245
spi_flash_read_command(CMD_READ_STATUS, read_status_response, 1);
246
} while ((read_status_response[0] & 0x1) != 0);
247
-
248
- if (!(flash_device->no_reset_cmd)){
+ if (!flash_device->single_status_byte) {
249
// The suspended write/erase bit should be low.
250
251
spi_flash_read_command(CMD_READ_STATUS2, read_status_response, 1);
252
} while ((read_status_response[0] & 0x80) != 0);
253
- } else {
+ }
+
254
+ if (!(flash_device->no_reset_cmd)){
255
spi_flash_command(CMD_ENABLE_RESET);
256
spi_flash_command(CMD_RESET);
257
}
0 commit comments