Skip to content

Commit 770813e

Browse files
committed
QSPI: apply Adesto quirk only for AT25SF128A
Fixes arduino/ArduinoCore-mbed#600
1 parent a38dc2a commit 770813e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

storage/blockdevice/COMPONENT_QSPIF/source/QSPIFBlockDevice.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1172,9 +1172,11 @@ int QSPIFBlockDevice::_handle_vendor_quirks()
11721172
break;
11731173
case 0x1f:
11741174
// Adesto device
1175-
tr_debug("Applying quirks for Adesto AT25SF128A");
1176-
_write_status_reg_2_inst = 0x31;
1177-
_AT25SF128A_quirk = true;
1175+
if (vendor_device_ids[1] == 0x89) {
1176+
tr_debug("Applying quirks for Adesto AT25SF128A");
1177+
_write_status_reg_2_inst = 0x31;
1178+
_AT25SF128A_quirk = true;
1179+
}
11781180
break;
11791181
}
11801182

0 commit comments

Comments
 (0)