Remove redundant QSPI erase alignment

pull/11531/head
Matthew Macovsky 2019-09-11 18:34:36 +01:00 committed by Kyle Kearney
parent a1c74036ea
commit 619c5d9e60
1 changed files with 1 additions and 3 deletions

View File

@ -1457,9 +1457,7 @@ qspi_status_t QSPIFBlockDevice::_qspi_send_erase_command(qspi_inst_t erase_inst,
} }
// Send erase command to driver // Send erase command to driver
status = _qspi.command_transfer(erase_inst, status = _qspi.command_transfer(erase_inst, (int) addr, NULL, 0, NULL, 0);
(((int) addr) & 0x00FFF000), // Align addr to 4096
NULL, 0, NULL, 0); // Do not transmit or receive
if (QSPI_STATUS_OK != status) { if (QSPI_STATUS_OK != status) {
tr_error("QSPI Erase failed"); tr_error("QSPI Erase failed");