From a6fbb88a627dabf5a0c3e0fa35353d89d60683c9 Mon Sep 17 00:00:00 2001 From: thisiskeithb <13375512+thisiskeithb@users.noreply.github.com> Date: Tue, 5 Nov 2024 04:26:55 -0800 Subject: [PATCH] Temporary LPC Dual Z patch --- Marlin/src/HAL/LPC1768/fastio.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Marlin/src/HAL/LPC1768/fastio.h b/Marlin/src/HAL/LPC1768/fastio.h index 4858334080..5bd10cd35a 100644 --- a/Marlin/src/HAL/LPC1768/fastio.h +++ b/Marlin/src/HAL/LPC1768/fastio.h @@ -66,7 +66,8 @@ #define _WRITE(IO,V) WRITE_PIN(IO,V) /// toggle a pin -#define _TOGGLE(IO) LPC176x::gpio_toggle(IO) +//#define _TOGGLE(IO) LPC176x::gpio_toggle(IO) +#define _TOGGLE(IO) _WRITE(IO, !READ(IO)) // Temporary fix for dual Z. See https://github.com/MarlinFirmware/Marlin/issues/27341 /// set pin as input #define _SET_INPUT(IO) SET_DIR_INPUT(IO)