START_PRINT gCode issue after update to klipper v0.10 (advice needed)

Hi all

Updated to klipper v0.10.113 last night, been having issues with my START_PRINT gcode since, and at a loss on how to fix it, any advice would be appreciated!

I’m using Cura 4.11 with the following for the Start GCode:

START_PRINT BED_TEMP={material_bed_temperature_layer_0} EXTRUDER_TEMP={material_print_temperature_layer_0}

And this is my STAR_PRINT macro in my printer.cfg

[gcode_macro START_PRINT]
default_parameter_BED_TEMP: 0
default_parameter_EXTRUDER_TEMP: 0
gcode:
    ;Put printing message on LCD screen
    M117 Heating... 
    M140 S{BED_TEMP} ; set bed temp

    G28 X Y; Home X Y
    M190 S{BED_TEMP} ; wait for bed temp
    G28 Z ; Home Z

    ; Auto Leveling
    BED_MESH_CALIBRATE

    G1 X0 Y0 Z10 F5000.0 ; move to start-line position

    M104 S{EXTRUDER_TEMP} ; set extruder temp
    M109 S{EXTRUDER_TEMP} ; wait for extruder temp
    
    M117 Priming
    ; Start of print
    G21; metric values
    G90 ; absolute positioning
    M82; set extruder to absolute mode

    ; now print a line of filament to prepare extrusion
    G92 E0 ; reset extruder
    G1 X20 Y10 Z0.3 F5000.0 ; move to start-line position
    G92 E0 ; reset extruder
    G1 X200 Y10 Z0.3 F1500.0 E15 ; draw 1st line
    G1 X200 Y10.4 Z0.3 F5000.0 ; move to side a little
    G1 X20 Y10.4 Z0.3 F1500.0 E30 ; draw 2nd line
    ;G1 E34 ; Retract extruder
    G92 E0 ; reset extruder
	G1 Z2.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed
	G1 X10 Y10 Z0.3 F5000.0 ; Move over to prevent blob squish

    ;Tuning params
    ;Put printing message on LCD screen
    M117 Printing...
    ; Start of actual GCode for the print

I can see in the release notes that “default_parameter” is now depreciated, so I removed the two relevant lines from the macro. Now, I get this error trying to start a print, and I’m not sure how to resolve:

Error on 'M140 S ; set bed temp': unable to parse

Is there a way for me to continue passing through the temps from the slicer into the START_PRINT macro?

Replace

[gcode_macro START_PRINT]
default_parameter_BED_TEMP: 0
default_parameter_EXTRUDER_TEMP: 0
gcode:
    ;Put printing message on LCD screen
    M117 Heating... 
...

by

[gcode_macro START_PRINT]
gcode:
    {% set BED_TEMP = params.BED_TEMP|default(0)|float %}
    {% set EXTRUDER_TEMP = params.EXTRUDER_TEMP|default(0)|float %}
    ;Put printing message on LCD screen
    M117 Heating... 
...

Perfect, thats working a treat!!