Skip to content

Commit

Permalink
Remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
DivingDuck committed Oct 12, 2024
1 parent 6f41202 commit fdc25e5
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions printrun/printcore.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,16 +416,7 @@ def startprint(self, gcode, startindex = 0):
return True

self.clear = False

'''Reset Gcode line number for printer, pls. see issue #1421.
Actual Prusa firmware >3.12.x needs "M110 N-1"
Smoothieware firmware needs "N-1 M110"
Old Marlin firmware 1.0.0 needs in addition line checksum
self._send("M110 N-1", -1, True) results in sending "N-1 M110 N-1*125"
and do not harm Smoothieware and old Marlin firmware.
Test for Prusa is needed.
'''
self._send("M110 N-1", -1, True) #all in one if Prusa works with "N-1 M110 N-1 + checksum"
self._send("M110 N-1", -1, True)

resuming = (startindex != 0)
self.print_thread = threading.Thread(target = self._print,
Expand Down Expand Up @@ -684,16 +675,7 @@ def _sendnext(self):
if not self.paused:
self.queueindex = 0
self.lineno = 0

'''Reset Gcode line number for printer, pls. see issue #1421.
Actual Prusa firmware >3.12.x needs "M110 N-1"
Smoothieware firmware needs "N-1 M110"
Old Marlin firmware 1.0.0 needs in addition line checksum
self._send("M110 N-1", -1, True) results in sending "N-1 M110 N-1*125"
and do not harm Smoothieware and old Marlin firmware.
Test for Prusa is needed.
'''
self._send("M110 N-1", -1, True) #all in one if Prusa works with "N-1 M110 N-1 + checksum"
self._send("M110 N-1", -1, True)

def _send(self, command, lineno = 0, calcchecksum = False):
# Only add checksums if over serial (tcp does the flow control itself)
Expand Down

0 comments on commit fdc25e5

Please sign in to comment.