We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 566f8be commit 1c17dc9Copy full SHA for 1c17dc9
ports/raspberrypi/common-hal/busio/SPI.c
@@ -90,7 +90,8 @@ void common_hal_busio_spi_construct(busio_spi_obj_t *self,
90
mp_raise_ValueError(translate("SPI peripheral in use"));
91
}
92
93
- spi_init(self->peripheral, 250000);
+ self->target_frequency = 250000;
94
+ self->real_frequency = spi_init(self->peripheral, self->target_frequency);
95
96
gpio_set_function(clock->number, GPIO_FUNC_SPI);
97
claim_pin(clock);
0 commit comments