Skip to content

Commit c98ff56

Browse files
authored
lower chunk_size for image save to SD
1 parent b0886e0 commit c98ff56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PyPortal_Thingiverse/thingiverse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
print("Response is", response)
3838
pyportal.set_background(None)
3939
image_url = response[2].replace('_thumb_medium.', '_display_large.')
40-
pyportal.wget(pyportal.image_converter_url(image_url, 320, 240), "/sd/cache.bmp")
40+
pyportal.wget(pyportal.image_converter_url(image_url, 320, 240), "/sd/cache.bmp", chunk_size=512)
4141
pyportal.set_background("/sd/cache.bmp")
4242

4343
except (IndexError, RuntimeError, ValueError) as e:

0 commit comments

Comments
 (0)