Skip to content

Commit 608d76e

Browse files
committed
fixes typo
1 parent 8e3db46 commit 608d76e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

micropy_updates/esp32/machine_hw_spi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ mp_obj_t machine_hw_spi_device_make_new(const mp_obj_type_t *type, size_t n_args
642642

643643
if (self->firstbit == MICROPY_PY_MACHINE_SPI_LSB) flags |= SPI_DEVICE_TXBIT_LSBFIRST | SPI_DEVICE_RXBIT_LSBFIRST;
644644

645-
if (dual || quad || octal) flags != SPI_DEVICE_HALFDUPLEX;
645+
if (dual || quad || octal) flags |= SPI_DEVICE_HALFDUPLEX;
646646

647647
spi_device_interface_config_t devcfg = {
648648
.clock_speed_hz = (uint32_t)spi_get_actual_clock(APB_CLK_FREQ, args[ARG_freq].u_int, 0),

0 commit comments

Comments
 (0)