mirror of
https://github.com/openmv/openmv.git
synced 2025-09-26 23:09:13 +08:00
modules/py_spi_display: Reduce timeout from max to 5 seconds.
This commit is contained in:
parent
73a73a0806
commit
7e77155551
@ -54,7 +54,7 @@ static void spi_transmit(py_display_obj_t *self, uint8_t *txdata, uint16_t size)
|
||||
omv_spi_transfer_t spi_xfer = {
|
||||
.txbuf = txdata,
|
||||
.size = size,
|
||||
.timeout = OMV_SPI_MAX_TIMEOUT,
|
||||
.timeout = 1000,
|
||||
.flags = OMV_SPI_XFER_BLOCKING
|
||||
};
|
||||
|
||||
@ -67,7 +67,7 @@ static void spi_transmit_16(py_display_obj_t *self, uint8_t *txdata, uint16_t si
|
||||
omv_spi_transfer_t spi_xfer = {
|
||||
.txbuf = txdata,
|
||||
.size = (!self->byte_swap) ? size : (size * 2),
|
||||
.timeout = OMV_SPI_MAX_TIMEOUT,
|
||||
.timeout = 1000,
|
||||
.flags = OMV_SPI_XFER_BLOCKING,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user