Skip to content

Commit f94c4a9

Browse files
committed
still messing with the partition size
1 parent 1e471a3 commit f94c4a9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

builder/esp32.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ def compile(*args): # NOQA
833833
)
834834

835835
if partition_size == -1:
836-
p_size = 0x267000
836+
p_size = 0x258000 # 0x259000
837837
else:
838838
p_size = partition_size
839839

@@ -938,7 +938,9 @@ def compile(*args): # NOQA
938938

939939
if not skip_partition_resize and partition_size == -1:
940940
if 'partition is too small ' in output:
941-
sys.stdout.write('\n\033[31;1m***** Resizing Partition *****\033[0m\n')
941+
sys.stdout.write(
942+
'\n\033[31;1m***** Resizing Partition *****\033[0m\n'
943+
)
942944
sys.stdout.flush()
943945

944946
end = output.split('(overflow ', 1)[-1]
@@ -967,6 +969,8 @@ def compile(*args): # NOQA
967969

968970
remaining = app_size - partition.get_app_size()
969971

972+
app_size
973+
970974
if abs(remaining) > 0x1000:
971975
sys.stdout.write(
972976
'\n\033[31;1m***** Resizing Partition *****\033[0m\n'

0 commit comments

Comments
 (0)