mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-10 16:27:51 -06:00
Update LimitXYAccelJerk.py
Changed ALL to PASS Changed "Griffon" to "UltiGcode" and "Griffin".
This commit is contained in:
parent
cc48f06d96
commit
716fe5c507
1 changed files with 3 additions and 2 deletions
|
@ -36,9 +36,10 @@ class LimitXYAccelJerk(Script):
|
||||||
self._instance.setProperty("jerk_cmd", "value", "reprap_flavor")
|
self._instance.setProperty("jerk_cmd", "value", "reprap_flavor")
|
||||||
else:
|
else:
|
||||||
self._instance.setProperty("jerk_cmd", "value", "marlin_flavor")
|
self._instance.setProperty("jerk_cmd", "value", "marlin_flavor")
|
||||||
|
firmware_flavor = str(mycura.getProperty("machine_gcode_flavor", "value"))
|
||||||
|
|
||||||
# Warn the user if the printer is an Ultimaker-------------------------
|
# Warn the user if the printer is an Ultimaker-------------------------
|
||||||
if "Ultimaker" in machine_name or "Griffon" in str(mycura.getProperty("machine_gcode_flavor", "value")):
|
if "Ultimaker" in machine_name or "UltiGCode" in firmware_flavor or "Griffin" in firmware_flavor:
|
||||||
Message(text = "<NOTICE> [Limit the X-Y Accel/Jerk] DID NOT RUN because Ultimaker printers don't have sliding beds.").show()
|
Message(text = "<NOTICE> [Limit the X-Y Accel/Jerk] DID NOT RUN because Ultimaker printers don't have sliding beds.").show()
|
||||||
|
|
||||||
# Warn the user if the printer is multi-extruder------------------
|
# Warn the user if the printer is multi-extruder------------------
|
||||||
|
@ -278,7 +279,7 @@ class LimitXYAccelJerk(Script):
|
||||||
lines.insert(len(lines)-2,m205_jerk_old)
|
lines.insert(len(lines)-2,m205_jerk_old)
|
||||||
data[end_index-1] = "\n".join(lines)
|
data[end_index-1] = "\n".join(lines)
|
||||||
except:
|
except:
|
||||||
all
|
pass
|
||||||
else:
|
else:
|
||||||
data[len(data)-1] = m201_limit_old + "\n" + m205_jerk_old + "\n" + data[len(data)-1]
|
data[len(data)-1] = m201_limit_old + "\n" + m205_jerk_old + "\n" + data[len(data)-1]
|
||||||
return data
|
return data
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue