From cadb829b0e0d0a8ce9837ea0628fb573065a6a88 Mon Sep 17 00:00:00 2001 From: Dan Cogliano Date: Sat, 1 Feb 2020 20:47:35 -0500 Subject: [PATCH] Reduced chunk_size to reduce memory fragmentation --- adafruit_pyportal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adafruit_pyportal.py b/adafruit_pyportal.py index e92b1d7..d0ae038 100644 --- a/adafruit_pyportal.py +++ b/adafruit_pyportal.py @@ -873,7 +873,7 @@ def fetch(self, refresh_url=None): # convert image to bitmap and cache #print("**not actually wgetting**") filename = "/cache.bmp" - chunk_size = 12000 # default chunk size is 12K (for QSPI) + chunk_size = 4096 # default chunk size is 12K (for QSPI) if self._sdcard: filename = "/sd" + filename chunk_size = 512 # current bug in big SD writes -> stick to 1 block