fixed undefined jinja variables when calling from the WebUI
This commit is contained in:
@@ -29,7 +29,7 @@ gcode:
|
||||
"Z_HEIGHT": z_height if z_height is not none else '',
|
||||
"ACCEL_CHIP": accel_chip if accel_chip is not none else ''
|
||||
} %}
|
||||
_EXCITATE_AXIS_AT_FREQ {% for key, value in params_filtered.items() if value is not none and value != '' %}{key}={value} {% endfor %}
|
||||
_EXCITATE_AXIS_AT_FREQ {% for key, value in params_filtered.items() if value is defined and value is not none and value != '' %}{key}={value} {% endfor %}
|
||||
|
||||
|
||||
[gcode_macro AXES_MAP_CALIBRATION]
|
||||
@@ -59,7 +59,7 @@ gcode:
|
||||
"TRAVEL_SPEED": travel_speed,
|
||||
"Z_HEIGHT": z_height if z_height is not none else ''
|
||||
} %}
|
||||
_COMPARE_BELTS_RESPONSES {% for key, value in params_filtered.items() if value is not none and value != '' %}{key}={value} {% endfor %}
|
||||
_COMPARE_BELTS_RESPONSES {% for key, value in params_filtered.items() if value is defined and value is not none and value != '' %}{key}={value} {% endfor %}
|
||||
|
||||
|
||||
[gcode_macro AXES_SHAPER_CALIBRATION]
|
||||
@@ -85,7 +85,7 @@ gcode:
|
||||
"TRAVEL_SPEED": travel_speed,
|
||||
"Z_HEIGHT": z_height if z_height is not none else ''
|
||||
} %}
|
||||
_AXES_SHAPER_CALIBRATION {% for key, value in params_filtered.items() if value is not none and value != '' %}{key}={value} {% endfor %}
|
||||
_AXES_SHAPER_CALIBRATION {% for key, value in params_filtered.items() if value is defined and value is not none and value != '' %}{key}={value} {% endfor %}
|
||||
|
||||
|
||||
[gcode_macro CREATE_VIBRATIONS_PROFILE]
|
||||
|
||||
Reference in New Issue
Block a user