From a3ee140e031969f0f12159bd0e39c219fa1b5e6c Mon Sep 17 00:00:00 2001 From: charlespick <17918019+charlespick@users.noreply.github.com> Date: Tue, 27 Jul 2021 11:22:29 -0700 Subject: [PATCH] well that didn't go as expected Signed-off-by: Charles Pickering --- config/sample-idex.cfg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/sample-idex.cfg b/config/sample-idex.cfg index c58d2c9a1b51..96fb809c5622 100644 --- a/config/sample-idex.cfg +++ b/config/sample-idex.cfg @@ -131,7 +131,7 @@ pin: PD13 description: M106 with support for multiple fans gcode: ; if the fanspeed isn't provided it defaults to max speed - {% if params.S is number %} + {% if params.S is defined %} {% set marlinSpeed = params.S|int %} {% else %} {% set marlinSpeed = 255 %} @@ -147,9 +147,9 @@ gcode: {% endif %} ; if P is not a number, it gets set to -1 - {% if params.P is number %} + {% if params.P is defined %} {% set target = params.P|int %} - {% elif %} + {% else %} {% set P = -1 %} {% endif %}