Skip to content

Commit 651859a

Browse files
committed
Merge branch '10.1.x' into merge-from-10.1.x
2 parents 75659f7 + 974cc2c commit 651859a

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

ports/espressif/boards/adafruit_qtpy_esp32s3_4mbflash_2mbpsram/mpconfigboard.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,6 @@
2525
#define CIRCUITPY_BOARD_UART_PIN {{.tx = &pin_GPIO5, .rx = &pin_GPIO16}}
2626

2727
#define DOUBLE_TAP_PIN (&pin_GPIO10)
28+
29+
// Reduce wifi.radio.tx_power due to the antenna design of this board
30+
#define CIRCUITPY_WIFI_DEFAULT_TX_POWER (15)

ports/espressif/boards/adafruit_qtpy_esp32s3_nopsram/mpconfigboard.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,6 @@
2525
#define CIRCUITPY_BOARD_UART_PIN {{.tx = &pin_GPIO5, .rx = &pin_GPIO16}}
2626

2727
#define DOUBLE_TAP_PIN (&pin_GPIO10)
28+
29+
// Reduce wifi.radio.tx_power due to the antenna design of this board
30+
#define CIRCUITPY_WIFI_DEFAULT_TX_POWER (15)

ports/stm/common-hal/busio/SPI.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,13 @@ void common_hal_busio_spi_construct(busio_spi_obj_t *self,
136136
const mcu_pin_obj_t *sck, const mcu_pin_obj_t *mosi,
137137
const mcu_pin_obj_t *miso, bool half_duplex) {
138138

139+
// Ensure the object starts in its deinit state before check_pins sets
140+
// self->sck, self->mosi, and self->miso.
141+
common_hal_busio_spi_mark_deinit(self);
142+
139143
int periph_index = check_pins(self, sck, mosi, miso);
140144
SPI_TypeDef *SPIx = mcu_spi_banks[periph_index - 1];
141145

142-
// Ensure the object starts in its deinit state.
143-
common_hal_busio_spi_mark_deinit(self);
144-
145146
// Start GPIO for each pin
146147
GPIO_InitTypeDef GPIO_InitStruct = {0};
147148
GPIO_InitStruct.Pin = pin_mask(sck->number);

0 commit comments

Comments
 (0)