Remove a number of unused variables

This commit is contained in:
Jaime van Kessel 2020-04-10 13:46:19 +02:00
parent 6a6ad6e815
commit fe27da5e8a
No known key found for this signature in database
GPG key ID: 3710727397403C91
8 changed files with 7 additions and 12 deletions

View file

@ -23,16 +23,13 @@ class BQ_PauseAtHeight(Script):
}"""
def execute(self, data):
x = 0.
y = 0.
current_z = 0.
pause_z = self.getSettingValueByKey("pause_height")
for layer in data:
lines = layer.split("\n")
for line in lines:
if self.getValue(line, 'G') == 1 or self.getValue(line, 'G') == 0:
current_z = self.getValue(line, 'Z')
if current_z != None:
if current_z is not None:
if current_z >= pause_z:
prepend_gcode = ";TYPE:CUSTOM\n"
prepend_gcode += "; -- Pause at height (%.2f mm) --\n" % pause_z