Skip to content

Commit

Permalink
Fixed type _INIT_PLATE_ARRAY to INIT_PLATE_ARRAY
Browse files Browse the repository at this point in the history
  • Loading branch information
Prutsium authored Jan 6, 2022
1 parent c5a54a7 commit 363991c
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions Klipper_cfg/Prusa_Universal_Config_Revised/Helpers/flexplate.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
## Do a klipper restart after adding the stuff above
##
## After klipper is back type
## _INIT_PLATE_ARRAY
## INIT_PLATE_ARRAY
## in the console to initial the needed variables
## Thats all you need to do for the initial setup
##
Expand Down Expand Up @@ -57,7 +57,7 @@ gcode:
initial_duration: 2
gcode:
{% if not printer.save_variables.variables.plate_array %}
{action_respond_info("FLEXPLATE: No Plate Array defined, please run _INIT_PLATE_ARRAY")}
{action_respond_info("FLEXPLATE: No Plate Array defined, please run INIT_PLATE_ARRAY")}
{% else %}
{% if printer['gcode_macro _USER_VARIABLE'].auto_z_offset|lower == 'flexplate' %}
_DISPLAY_PLATE TEXT='Init'
Expand All @@ -74,7 +74,7 @@ gcode:
# set default parameter value
{% set move = params.MOVE|default('true') %}
{% if not printer.save_variables.variables.plate_array %}
{action_respond_info("FLEXPLATE:No Plate Array defined, please run _INIT_PLATE_ARRAY")}
{action_respond_info("FLEXPLATE:No Plate Array defined, please run INIT_PLATE_ARRAY")}
{% else %}
{% if printer['gcode_macro _USER_VARIABLE'].auto_z_offset|lower == 'flexplate' %}
{% set plates = printer.save_variables.variables.plate_array %}
Expand All @@ -97,7 +97,7 @@ gcode:
# set default parameter value
{% set text = params.TEXT|default('Used') %}
{% if not printer.save_variables.variables.plate_array %}
{action_respond_info("FLEXPLATE: No Plate Array defined, please run _INIT_PLATE_ARRAY")}
{action_respond_info("FLEXPLATE: No Plate Array defined, please run INIT_PLATE_ARRAY")}
{% else %}
{% set plates = printer.save_variables.variables.plate_array %}
{% set index = printer.save_variables.variables.plate_index|int %}
Expand Down Expand Up @@ -132,7 +132,7 @@ gcode:
description: Print all flexplates
gcode:
{% if not printer.save_variables.variables.plate_array %}
{action_respond_info("FLEXPLATE: No Plate Array defined, please run _INIT_PLATE_ARRAY")}
{action_respond_info("FLEXPLATE: No Plate Array defined, please run INIT_PLATE_ARRAY")}
{% else %}
{% set array = namespace(output = '') %}
{% set plates = printer.save_variables.variables.plate_array %}
Expand All @@ -157,7 +157,7 @@ gcode:
# set default parameter value
{% set index = params.INDEX|default(0)|int %}
{% if not printer.save_variables.variables.plate_array %}
{action_respond_info("FLEXPLATE: No Plate Array defined, please run _INIT_PLATE_ARRAY")}
{action_respond_info("FLEXPLATE: No Plate Array defined, please run INIT_PLATE_ARRAY")}
{% else %}
{% set plates = printer.save_variables.variables.plate_array %}
{% set elem_count = plates|length %}
Expand All @@ -183,7 +183,7 @@ gcode:
description: Add a new flexplate to the array
gcode:
{% if not printer.save_variables.variables.plate_array %}
{action_respond_info("FLEXPLATE: No Plate Array defined, please run _INIT_PLATE_ARRAY")}
{action_respond_info("FLEXPLATE: No Plate Array defined, please run INIT_PLATE_ARRAY")}
{% else %}
{% set array = namespace(output = '') %}
{% set plates = printer.save_variables.variables.plate_array %}
Expand All @@ -208,7 +208,7 @@ gcode:
description: Remove the active flexplate from array
gcode:
{% if not printer.save_variables.variables.plate_array %}
{action_respond_info("FLEXPLATE: No Plate Array defined, please run _INIT_PLATE_ARRAY")}
{action_respond_info("FLEXPLATE: No Plate Array defined, please run INIT_PLATE_ARRAY")}
{% else %}
{% set array = namespace(output = '') %}
{% set plates = printer.save_variables.variables.plate_array %}
Expand Down Expand Up @@ -259,7 +259,7 @@ gcode:
# set default parameter value
{% set offset = params.OFFSET|default(0.0)|float %}
{% if not printer.save_variables.variables.plate_array %}
{action_respond_info("FLEXPLATE: No Plate Array defined, please run _INIT_PLATE_ARRAY")}
{action_respond_info("FLEXPLATE: No Plate Array defined, please run INIT_PLATE_ARRAY")}
{% else %}
{% set array = namespace(output = '') %}
{% set plates = printer.save_variables.variables.plate_array %}
Expand Down Expand Up @@ -301,7 +301,7 @@ gcode:
# set default parameter value
{% set name = params.NAME|default('New') %}
{% if not printer.save_variables.variables.plate_array %}
{action_respond_info("FLEXPLATE: No Plate Array defined, please run _INIT_PLATE_ARRAY")}
{action_respond_info("FLEXPLATE: No Plate Array defined, please run INIT_PLATE_ARRAY")}
{% else %}
{% set array = namespace(output = '') %}
{% set plates = printer.save_variables.variables.plate_array %}
Expand Down Expand Up @@ -425,4 +425,4 @@ gcode:

[gcode_macro SHEET_6]
gcode:
SET_PLATE INDEX=5
SET_PLATE INDEX=5

0 comments on commit 363991c

Please sign in to comment.