Revert changes to chunk sizes and timeouts to A1-safe values.

This commit is contained in:
Ryan Ewen
2026-02-20 08:52:55 +01:00
committed by maziggy
parent 31f4193ce0
commit 4be46c1b1e
+4 -4
View File
@@ -81,11 +81,11 @@ class BambuFTPClient:
# Models that may need SSL mode fallback (try prot_p first, fall back to prot_c)
# These models have varying FTP SSL behavior depending on firmware version
A1_MODELS = ("A1", "A1 Mini")
# Chunk size for manual upload transfer (256KB)
# Smaller chunks increase cancellation responsiveness during uploads.
CHUNK_SIZE = 256 * 1024
# Chunk size for manual upload transfer (1MB)
# Larger chunks reduce overhead and work better with A1 printers
CHUNK_SIZE = 1024 * 1024
# Per-chunk data socket timeout during upload.
UPLOAD_CHUNK_TIMEOUT = 15
UPLOAD_CHUNK_TIMEOUT = 120
# Cache for working FTP modes per printer IP
# Maps IP -> "prot_p" or "prot_c"