atmel-samd: Remember SPI baudrate.
This prevents the SERCOM from blipping the data line on each transaction and therefore fixes #219.
This commit is contained in:
parent
4d0dc4b298
commit
e2f39a8d93
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue