markwal / OctoPrint-GPX

An OctoPrint plug-in to use GPX as the protocol layer underneath rather than replacing g-code to talk to s3g/x3g machines, for example, a FlashForge.
GNU Affero General Public License v3.0
104 stars 25 forks source link

FIX: OSError which would cause printer to disconnect #98

Closed chadrakoczy closed 12 months ago

chadrakoczy commented 12 months ago

Fix for #93 and #95

OctoPrint-GPX throws an OSError on write that causes OctoPrint to disconnect from the printer in the middle of a print. For me it would occur within the first 10-15 seconds of a print. This fix retries the write 5 times before throwing the exception