Skip to content

Commit d8a594a

Browse files
committed
some coding correction in the spi module
1 parent 497b0ae commit d8a594a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext_mod/esp32_additions/spi/src/esp32_spi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ mp_obj_t esp32_hw_spi_bus_make_new(const mp_obj_type_t *type, size_t n_args, siz
727727
self = &esp32_hw_spi_bus_obj[host - 1];
728728
default_pins = &default_pins_array[host - 1];
729729
#if SOC_SPI_SUPPORT_OCT
730-
default_oct_pins = default_pins_array[host - 1];
730+
default_oct_pins = &default_pins_array[host - 1];
731731
#endif
732732
} else {
733733
mp_raise_msg_varg(&mp_type_ValueError, MP_ERROR_TEXT("SPI(%d) doesn't exist"), host);
@@ -991,7 +991,7 @@ mp_obj_t esp32_hw_spi_bus_make_new(const mp_obj_type_t *type, size_t n_args, siz
991991
.data5_io_num = (int)data5,
992992
.data6_io_num = (int)data6,
993993
.data7_io_num = (int)data7,
994-
.max_transfer_sz = SPI_LL_DMA_MAX_BIT_LEN / 8
994+
.max_transfer_sz = SPI_LL_DMA_MAX_BIT_LEN / 8,
995995
.flags = buscfg_flags
996996
};
997997
self->host = (spi_host_device_t)host;

0 commit comments

Comments
 (0)