Skip to content

Commit 46ab4a7

Browse files
committed
Fixes incorrect name in esp32 spi module
Fixes issue with partition sizing for the esp32 Fixes #68
1 parent 5d9cde2 commit 46ab4a7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

builder/esp32.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -953,8 +953,8 @@ def compile(*args): # NOQA
953953
)
954954
sys.stdout.flush()
955955

956-
compile_cmd[4] = 'SECOND_BUILD=1'
957-
ret_code, output = spawn(cmds, env=env, cmpl=True)
956+
cmd_[4] = 'SECOND_BUILD=1'
957+
ret_code, output = spawn(cmd_, env=env, cmpl=True)
958958

959959
if ret_code != 0:
960960
sys.exit(ret_code)

micropy_updates/esp32/machine_hw_spi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ void machine_hw_spi_bus_initilize(machine_hw_spi_bus_obj_t *bus)
462462
#if CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3 || CONFIG_IDF_TARGET_ESP32C3
463463
ret = spi_bus_initialize((spi_host_device_t)bus->host, &buscfg, SPI_DMA_CH_AUTO);
464464
#else
465-
if (self->host == SPI2_HOST) {
465+
if (bus->host == SPI2_HOST) {
466466
ret = spi_bus_initialize((spi_host_device_t)bus->host, &buscfg, 1);
467467
} else {
468468
ret = spi_bus_initialize((spi_host_device_t)bus->host, &buscfg, 2);

0 commit comments

Comments
 (0)