Skip to content

Commit 7f5f931

Browse files
committed
Move background task check
1 parent dd05118 commit 7f5f931

File tree

1 file changed

+1
-2
lines changed
  • ports/espressif/common-hal/busio

1 file changed

+1
-2
lines changed

ports/espressif/common-hal/busio/SPI.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,10 +262,9 @@ bool common_hal_busio_spi_transfer(busio_spi_obj_t *self,
262262

263263
for (int i = 0; i < cur_trans; i++) {
264264
spi_device_queue_trans(spi_handle[self->host_id], &transactions[i], portMAX_DELAY);
265+
RUN_BACKGROUND_TASKS;
265266
}
266267

267-
RUN_BACKGROUND_TASKS;
268-
269268
spi_transaction_t *rtrans;
270269
for (int x = 0; x < cur_trans; x++) {
271270
spi_device_get_trans_result(spi_handle[self->host_id], &rtrans, portMAX_DELAY);

0 commit comments

Comments
 (0)