QSPI STM32: fix return value in frequency

pull/6106/head
Martin Kojtal 2017-11-23 14:34:11 +00:00
parent fca7a85868
commit b708cfbfc7
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ qspi_status_t qspi_frequency(qspi_t *obj, int hz)
if (HAL_QSPI_Init(&obj->handle) != HAL_OK) { if (HAL_QSPI_Init(&obj->handle) != HAL_OK) {
status = QSPI_STATUS_ERROR; status = QSPI_STATUS_ERROR;
} }
return QSPI_STATUS_OK; return status;
} }
qspi_status_t qspi_write(qspi_t *obj, const qspi_command_t *command, const void *data, size_t *length) qspi_status_t qspi_write(qspi_t *obj, const qspi_command_t *command, const void *data, size_t *length)