diff --git a/targets/TARGET_STM/qspi_api.c b/targets/TARGET_STM/qspi_api.c index 37eab642c1..1254b8213e 100644 --- a/targets/TARGET_STM/qspi_api.c +++ b/targets/TARGET_STM/qspi_api.c @@ -197,10 +197,6 @@ qspi_status_t qspi_write(qspi_t *obj, const qspi_command_t *command, const void status = QSPI_STATUS_ERROR; } - if (QSPI_AutoPollingMemReady(&obj->handle, HAL_QPSI_TIMEOUT_DEFAULT_VALUE) != HAL_OK) { - status = QSPI_STATUS_ERROR; - } - return status; } @@ -221,10 +217,6 @@ qspi_status_t qspi_read(qspi_t *obj, const qspi_command_t *command, void *data, status = QSPI_STATUS_ERROR; } - if (QSPI_AutoPollingMemReady(&obj->handle, HAL_QPSI_TIMEOUT_DEFAULT_VALUE) != HAL_OK) { - status = QSPI_STATUS_ERROR; - } - return status; }