From 752757539c06c1e313261e471be8844a18baac71 Mon Sep 17 00:00:00 2001 From: "Alexey D. Filimonov" Date: Mon, 17 Apr 2023 02:38:12 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Fix=20Spindle/Laser=20ENA=20pin?= =?UTF-8?q?=20test=20(#25622)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Marlin/src/feature/spindle_laser.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/src/feature/spindle_laser.h b/Marlin/src/feature/spindle_laser.h index 9750d4807fc19..5cbc20866c503 100644 --- a/Marlin/src/feature/spindle_laser.h +++ b/Marlin/src/feature/spindle_laser.h @@ -210,7 +210,7 @@ class SpindleLaser { enable = false; apply_power(0); } - #if SPINDLE_LASER_ENA_PIN + #if PIN_EXISTS(SPINDLE_LASER_ENA) WRITE(SPINDLE_LASER_ENA_PIN, enable ? SPINDLE_LASER_ACTIVE_STATE : !SPINDLE_LASER_ACTIVE_STATE); #endif enable_state = enable;