Skip to content

Commit cadb829

Browse files
committed
Reduced chunk_size to reduce memory fragmentation
1 parent 0770e9c commit cadb829

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_pyportal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ def fetch(self, refresh_url=None):
873873
# convert image to bitmap and cache
874874
#print("**not actually wgetting**")
875875
filename = "/cache.bmp"
876-
chunk_size = 12000 # default chunk size is 12K (for QSPI)
876+
chunk_size = 4096 # default chunk size is 12K (for QSPI)
877877
if self._sdcard:
878878
filename = "/sd" + filename
879879
chunk_size = 512 # current bug in big SD writes -> stick to 1 block

0 commit comments

Comments
 (0)