Skip to content

Commit d2200b0

Browse files
committed
fixing esp32 build
1 parent e26da80 commit d2200b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builder/esp32.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ def compile(): # NOQA
511511
'"partitions-2MiB.csv"'
512512
])
513513

514-
if flash_size == '4':
514+
elif flash_size == '4':
515515
base_config.extend([
516516
'CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y',
517517
'CONFIG_PARTITION_TABLE_CUSTOM_FILENAME='
@@ -530,7 +530,7 @@ def compile(): # NOQA
530530
'CONFIG_PARTITION_TABLE_CUSTOM_FILENAME='
531531
'"partitions-16MiB.csv"'
532532
])
533-
if flash_size == '32':
533+
elif flash_size == '32':
534534
base_config.extend([
535535
'CONFIG_ESPTOOLPY_FLASHSIZE_32MB=y',
536536
'CONFIG_PARTITION_TABLE_CUSTOM_FILENAME='

0 commit comments

Comments
 (0)