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)