From 4cc83b6330009d616a8673214fafba2ccc6676e6 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Thu, 18 Jul 2019 23:37:54 -0500 Subject: [PATCH] Allow THERMAL_PROTECTION_GRACE_PERIOD override Co-Authored-By: MarcelMo --- Marlin/src/HAL/HAL_LPC1768/HAL.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Marlin/src/HAL/HAL_LPC1768/HAL.h b/Marlin/src/HAL/HAL_LPC1768/HAL.h index d96bf7c909..55122827f4 100644 --- a/Marlin/src/HAL/HAL_LPC1768/HAL.h +++ b/Marlin/src/HAL/HAL_LPC1768/HAL.h @@ -147,7 +147,9 @@ using FilteredADC = LPC176x::ADC; #define HAL_ADC_READY() FilteredADC::finished_conversion() // A grace period to allow ADC readings to stabilize, preventing false alarms -#define THERMAL_PROTECTION_GRACE_PERIOD 1000 +#ifndef THERMAL_PROTECTION_GRACE_PERIOD + #define THERMAL_PROTECTION_GRACE_PERIOD 1000 +#endif // Parse a G-code word into a pin index int16_t PARSED_PIN_INDEX(const char code, const int16_t dval);