From fad19dbc277aecd3b9c576bc4388b42e8ddb9174 Mon Sep 17 00:00:00 2001 From: Bassam Husain Date: Thu, 3 Oct 2024 00:11:43 -0400 Subject: [PATCH] Clean whitespace from misc macros. Adjust gitignore. --- .gitignore | 2 ++ cfgs/misc-macros.cfg | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 9b6428f..f9a8465 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ printer-*_*.cfg .moonraker.conf.bkp .directory moonraker.conf.backup +.venv +__pycache__ diff --git a/cfgs/misc-macros.cfg b/cfgs/misc-macros.cfg index 56fa16f..85f7cba 100644 --- a/cfgs/misc-macros.cfg +++ b/cfgs/misc-macros.cfg @@ -97,7 +97,7 @@ gcode: # Set safe speeds {% set maxVelocity = printer.configfile.settings.printer.max_velocity|default(200)|int %} - {% set maxVelocityAdjusted = (0.95 * maxVelocity * 60)|int %} + {% set maxVelocityAdjusted = (0.95 * maxVelocity * 60)|int %} G92 E0.0 ; reset extruder G90 ; Absolute positioning @@ -132,7 +132,7 @@ gcode: {% set bedtempSlicer = bedtemp %} {% set bedtempOver = printer["gcode_macro _globals"].bed_temp_over|default(0)|int %} {% set maxVelocity = printer.configfile.settings.printer.max_velocity|default(200)|int %} - {% set maxVelocityAdjusted = (0.90 * maxVelocity * 60)|int %} + {% set maxVelocityAdjusted = (0.90 * maxVelocity * 60)|int %} {% set kampEnabled=printer["gcode_macro _globals"].kamp_enable|default(0)|int %} {% if printer.configfile.settings.safe_z_home %} @@ -195,8 +195,8 @@ gcode: # Set safe speeds {% set zVelocity = printer.configfile.settings.printer.max_z_velocity|default(15)|int %} {% set maxVelocity = printer.configfile.settings.printer.max_velocity|default(200)|int %} - {% set zVelocityAdjusted = (0.95 * zVelocity * 60)|int %} - {% set maxVelocityAdjusted = (0.95 * maxVelocity * 60)|int %} + {% set zVelocityAdjusted = (0.95 * zVelocity * 60)|int %} + {% set maxVelocityAdjusted = (0.95 * maxVelocity * 60)|int %} # Get Boundaries {% set max_x = printer.configfile.config["stepper_x"]["position_max"]|float %}