From 592ecd3dd4d9b1166a2233f48289927d2890b76c Mon Sep 17 00:00:00 2001 From: OrcaSlicerBot Date: Fri, 26 Dec 2025 19:34:54 +0000 Subject: [PATCH] Updated Wiki content --- .../machine gcode/printer_machine_gcode.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/printer_settings/machine gcode/printer_machine_gcode.md b/printer_settings/machine gcode/printer_machine_gcode.md index 92cb3c9..1755faa 100644 --- a/printer_settings/machine gcode/printer_machine_gcode.md +++ b/printer_settings/machine gcode/printer_machine_gcode.md @@ -100,7 +100,7 @@ This G-code is inserted when the extrusion role is changed. Example G-codes: - Marlin g-code to set fan speed to 10% (S25 out of S255) for BridgeInfill role and 30% (S75 out of S255) for other roles: - ```gcode + ```c++ {if( extrusion_role == "BridgeInfill")} M106 S25 {else} @@ -108,9 +108,9 @@ Example G-codes: {endif} ``` -- Marlin G-code to set the fan speed to 0% for the ['Internal Sparse Infill' role](strength_settings_infill) and the first three layers, and to 30% (M106 S{0.3*255}) for the other roles. This achieves good layer adhesion while maintaining perimeter quality.: - ```gcode - {if(extrusion_role)=="InternalInfill"||layer_num <4} +- Marlin G-code to set the fan speed to 0% for the ['Internal Sparse Infill' role](strength_settings_infill) and the first three layers, and to 30% `0.3*255` for the other roles. This achieves good layer adhesion while maintaining perimeter quality.: + ```c++ + {if(extrusion_role)=="InternalInfill" || layer_num < 4 } M106 S0 {else} M106 S{0.3*255} @@ -118,7 +118,7 @@ Example G-codes: ``` - Marlin g-code to set pressure advance to 0 for ['Internal Sparse Infill' role](strength_settings_infill) and restore it to previous value for other roles: - ```gcode + ```c++ {if( extrusion_role == "InternalInfill")} M900 K0 {else}