Skip to content

Commit

Permalink
Move background tasks to slower routine
Browse files Browse the repository at this point in the history
  • Loading branch information
gamblor21 committed Mar 8, 2023
1 parent 7f5f931 commit ab70506
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ports/espressif/common-hal/busio/SPI.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,11 +262,11 @@ bool common_hal_busio_spi_transfer(busio_spi_obj_t *self,

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

spi_transaction_t *rtrans;
for (int x = 0; x < cur_trans; x++) {
RUN_BACKGROUND_TASKS;
spi_device_get_trans_result(spi_handle[self->host_id], &rtrans, portMAX_DELAY);
}
}
Expand Down

0 comments on commit ab70506

Please sign in to comment.