From fae7dead933e5a0bf50389954b683908ca00169b Mon Sep 17 00:00:00 2001 From: "D.R.racer" Date: Thu, 29 Jul 2021 09:50:00 +0200 Subject: [PATCH] 20 bits for coostep thr --- src/config/config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/config.h b/src/config/config.h index 416dadc..baa2ce6 100644 --- a/src/config/config.h +++ b/src/config/config.h @@ -112,7 +112,7 @@ static constexpr int8_t tmc2130_sg_thrs = 3; // @todo 7bit two's complement for static_assert(tmc2130_sg_thrs >= -64 && tmc2130_sg_thrs <= 63, "tmc2130_sg_thrs out of range"); static constexpr uint32_t tmc2130_coolStepThreshold = 400; ///< step-based 20bit uint -static_assert(tmc2130_coolStepThreshold <= 0x3ffff, "tmc2130_coolStepThreshold out of range"); +static_assert(tmc2130_coolStepThreshold <= 0xfffff, "tmc2130_coolStepThreshold out of range"); static constexpr uint32_t tmc2130_PWM_AMPL = 240; static_assert(tmc2130_PWM_AMPL <= 255, "tmc2130_PWM_AMPL out of range");