Skip to content

Commit ad5cabf

Browse files
authored
Merge pull request #65 from cogliano/master
Reduced chunk_size to reduce memory fragmentation
2 parents d9f7c12 + cadb829 commit ad5cabf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_pyportal.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ def fetch(self, refresh_url=None):
882882
# convert image to bitmap and cache
883883
#print("**not actually wgetting**")
884884
filename = "/cache.bmp"
885-
chunk_size = 12000 # default chunk size is 12K (for QSPI)
885+
chunk_size = 4096 # default chunk size is 12K (for QSPI)
886886
if self._sdcard:
887887
filename = "/sd" + filename
888888
chunk_size = 512 # current bug in big SD writes -> stick to 1 block

0 commit comments

Comments
 (0)