From 94dd524785d1f8965361d750fa94bded24b80a47 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Fri, 17 Nov 2017 11:13:15 +0100 Subject: [PATCH] Add setting to determine whether to use firmware retraction This allows printers to determine this for themselves. By default it's based on the g-code flavour in the same way as it is now implemented in the engine. Fixes #1097. --- resources/definitions/fdmprinter.def.json | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/resources/definitions/fdmprinter.def.json b/resources/definitions/fdmprinter.def.json index bf65baf1d9..7465fdcea7 100644 --- a/resources/definitions/fdmprinter.def.json +++ b/resources/definitions/fdmprinter.def.json @@ -318,6 +318,17 @@ "settable_per_extruder": false, "settable_per_meshgroup": false }, + "machine_firmware_retract": + { + "label": "Firmware Retraction", + "description": "Whether to use firmware retract commands (G10/G11) instead of using the E property in G1 commands to retract the material.", + "type": "bool", + "default_value": false, + "value": "machine_gcode_flavor == 'RepRap (Volumetric)' or machine_gcode_flavor == 'UltiGCode' or machine_gcode_flavor == 'BFB'", + "settable_per_mesh": false, + "settable_per_extruder": false, + "settable_per_meshgroup": false + }, "machine_disallowed_areas": { "label": "Disallowed areas",