Merge pull request #223 from tannewt/baudrate_fix

atmel-samd: Remember SPI baudrate.
This commit is contained in:
Radomir Dopieralski 2017-09-01 21:56:44 +02:00 committed by GitHub
commit c01bf678fd

View File

@ -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);