chiark / gitweb /
Cancel resend if firmware asks for line 1 or more than 100 lines before current
authorYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Tue, 11 Aug 2015 16:54:38 +0000 (12:54 -0400)
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Tue, 11 Aug 2015 16:57:07 +0000 (12:57 -0400)
commit88153fdd60334462b999ac3459a60e70c6e236b7
tree69765edd23bd36d38629297ee39d1073ea3d63e3
parentb09b6bd36220ef66f28308f36a129844560d35c4
Cancel resend if firmware asks for line 1 or more than 100 lines before current

This is because it seems when we use a heat-and-wait command (possibly),
there is a risk of getting a checksum error and resend. That could happen
for more than the 10 lines we had set previously, so setting it to 100 sounds
like a safer value.
We also check for position 1 because if the error happens in the first 100
lines, it would be missed.
We're also printing a message to the console when that happens.
Fixes T178
Cura/util/machineCom.py