diff --git a/Marlin/src/module/stepper.cpp b/Marlin/src/module/stepper.cpp index 50b8323838..5d48b20ee8 100644 --- a/Marlin/src/module/stepper.cpp +++ b/Marlin/src/module/stepper.cpp @@ -247,7 +247,13 @@ uint32_t Stepper::advance_divisor = 0, #if HAS_ZV_SHAPING shaping_time_t ShapingQueue::now = 0; - shaping_time_t ShapingQueue::times[shaping_echoes]; + #if ANY(MCU_LPC1768, MCU_LPC1769) && DISABLED(NO_LPC_ETHERNET_BUFFER) + // Use the 16K LPC Ethernet buffer: https://github.com/MarlinFirmware/Marlin/issues/25432#issuecomment-1450420638 + #define _ATTR_BUFFER __attribute__((section("AHBSRAM1"),aligned)) + #else + #define _ATTR_BUFFER + #endif + shaping_time_t ShapingQueue::times[shaping_echoes] _ATTR_BUFFER; shaping_echo_axis_t ShapingQueue::echo_axes[shaping_echoes]; uint16_t ShapingQueue::tail = 0; diff --git a/Marlin/src/pins/pins.h b/Marlin/src/pins/pins.h index 7e235ca80a..4d41d76d88 100644 --- a/Marlin/src/pins/pins.h +++ b/Marlin/src/pins/pins.h @@ -120,7 +120,7 @@ #ifdef __MARLIN_DEPS__ #define NOT_TARGET(V...) 0 #else - #define NOT_TARGET(V...) NONE(V) + #define NOT_TARGET NONE #endif //