kliment/Printrun — pull request #67 by brad (2011-10-16 07:35:35+00:00)
Title: fixes freezing issue

Hey guys,
I shied away from Printrun for a long time because the print would just pause randomly in the middle of the print and there was no way in pronterface to get it started again, so I was never able to finish any prints with Printrun. It happened with Repsnapper too, but there is a kick button that would continue the print.

Finally today I decided to really buckle down and debug the issue. Fortunately printcore.py is pretty short and sweet. I did some dry runs with printcore and discovered that the print would stop when the software sent a command and didn't receive a response from the printer. In these cases, all I had to do to get the print going again was to set clear to True.

Long story short, I set a timeout. If nothing is added to the log for 5 ms, set clear to True to kick it back to life. I havent had any permanent pauses since my change and things are printing out perfectly! The only downside is that it still pauses sometimes for up to a few seconds (still don't understand why that's happening) but at least the pauses aren't permanent. I hope you add this or something like it to the master branch.
Thanks guys,
Brad