mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 03:35:57 +08:00
Remove debugging prints
This commit is contained in:
parent
ce125a41a5
commit
d0cc9ba8a6
@ -174,15 +174,12 @@ class PauseAtHeight(Script):
|
|||||||
if not line.startswith(";LAYER:"):
|
if not line.startswith(";LAYER:"):
|
||||||
continue
|
continue
|
||||||
current_layer = line[len(";LAYER:"):]
|
current_layer = line[len(";LAYER:"):]
|
||||||
print("----------current_layer:", current_layer)
|
|
||||||
try:
|
try:
|
||||||
current_layer = int(current_layer)
|
current_layer = int(current_layer)
|
||||||
except ValueError: #Couldn't cast to int. Something is wrong with this g-code data.
|
except ValueError: #Couldn't cast to int. Something is wrong with this g-code data.
|
||||||
print("----------couldn't cast to int")
|
|
||||||
continue
|
continue
|
||||||
if current_layer < pause_layer:
|
if current_layer < pause_layer:
|
||||||
break #Try the next layer.
|
break #Try the next layer.
|
||||||
print("------------hit! Got it!")
|
|
||||||
|
|
||||||
prevLayer = data[index - 1]
|
prevLayer = data[index - 1]
|
||||||
prevLines = prevLayer.split("\n")
|
prevLines = prevLayer.split("\n")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user