Skip to content

Commit 90b4e4e

Browse files
committed
fix unit test and apply correct value for machine_end_gcode
Ultimaker origin overrides the value, so the default_value override is not effective causing the unittest fail additionally the value must be formatted correctly to resolve.
1 parent 696e94d commit 90b4e4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/definitions/ultimaker_original_dual.def.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"layer_height_0": { "value": "max(0.2, layer_height)" },
5656
"machine_center_is_zero": { "default_value": false },
5757
"machine_depth": { "default_value": 195 },
58-
"machine_end_gcode": { "default_value": "M104 T0 S0 ;1st extruder heater off\nM104 T1 S0 ;2nd extruder heater off\nM140 S0 ;heated bed heater off (if you have it)\nG91 ;relative positioning\nG1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure\nG1 Z+0.5 E-5 X-20 Y-20 F9000 ;move Z up a bit and retract filament even more\nG28 X0 Y0 ;move X/Y to min endstops, so the head is out of the way\nM84 ;steppers off\nG90 ;absolute positioning" },
58+
"machine_end_gcode": { "value": "'M104 T0 S0 ;1st extruder heater off\\nM104 T1 S0 ;2nd extruder heater off' + ('\\nM140 S0 ;heated bed heater off' if machine_heated_bed else '') + '\\nG91 ;relative positioning\\nG1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure\\nG1 Z+0.5 E-5 X-20 Y-20 F9000 ;move Z up a bit and retract filament even more\\nG28 X0 Y0 ;move X/Y to min endstops, so the head is out of the way\\nM84 ;steppers off\\nG90 ;absolute positioning'" },
5959
"machine_extruder_count": { "default_value": 2 },
6060
"machine_gcode_flavor": { "default_value": "RepRap (Marlin/Sprinter)" },
6161
"machine_head_with_fans_polygon":

0 commit comments

Comments
 (0)