Merge pull request #4305 from LMESTM/fix_increase_stm32_spi_timeout

Increase stm32 timeout for spi transfers
pull/4322/head
Martin Kojtal 2017-05-15 16:22:59 +01:00 committed by GitHub
commit cb3531c438
1 changed files with 1 additions and 1 deletions

View File

@ -357,7 +357,7 @@ int spi_master_write(spi_t *obj, int value)
size = (handle->Init.DataSize == SPI_DATASIZE_16BIT) ? 2 : 1;
/* Use 10ms timeout */
ret = HAL_SPI_TransmitReceive(handle,(uint8_t*)&value,(uint8_t*)&Rx,size,10);
ret = HAL_SPI_TransmitReceive(handle,(uint8_t*)&value,(uint8_t*)&Rx,size,HAL_MAX_DELAY);
if(ret == HAL_OK) {
return Rx;