From e2f39a8d936605f27f89a1216054eb8c43b62e2f Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Fri, 1 Sep 2017 12:44:52 -0700 Subject: [PATCH] atmel-samd: Remember SPI baudrate. This prevents the SERCOM from blipping the data line on each transaction and therefore fixes #219. --- atmel-samd/common-hal/busio/SPI.c | 1 + 1 file changed, 1 insertion(+) diff --git a/atmel-samd/common-hal/busio/SPI.c b/atmel-samd/common-hal/busio/SPI.c index f3f289f37c..c7e7d6fd78 100644 --- a/atmel-samd/common-hal/busio/SPI.c +++ b/atmel-samd/common-hal/busio/SPI.c @@ -174,6 +174,7 @@ bool common_hal_busio_spi_configure(busio_spi_obj_t *self, if (status != STATUS_OK) { return false; } + self->current_baudrate = baudrate; } SercomSpi *const spi_module = &(self->spi_master_instance.hw->SPI);