Skip to content

Commit ab70506

Browse files
committed
Move background tasks to slower routine
1 parent 7f5f931 commit ab70506

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,11 +262,11 @@ 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;
266265
}
267266

268267
spi_transaction_t *rtrans;
269268
for (int x = 0; x < cur_trans; x++) {
269+
RUN_BACKGROUND_TASKS;
270270
spi_device_get_trans_result(spi_handle[self->host_id], &rtrans, portMAX_DELAY);
271271
}
272272
}

0 commit comments

Comments
 (0)