From f748b1a1ce63766cd8ef1132d405c1137045e5ce Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Thu, 26 Apr 2018 17:52:20 -0500 Subject: [PATCH] Apply const in a few spots --- Marlin/tmc_util.cpp | 2 +- Marlin/tmc_util.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/tmc_util.cpp b/Marlin/tmc_util.cpp index edec89c134..3f7272fec1 100644 --- a/Marlin/tmc_util.cpp +++ b/Marlin/tmc_util.cpp @@ -579,7 +579,7 @@ void _tmc_say_sgt(const TMC_AxisEnum axis, const int8_t sgt) { #if ENABLED(SENSORLESS_HOMING) - void tmc_sensorless_homing(TMC2130Stepper &st, bool enable/*=true*/) { + void tmc_sensorless_homing(TMC2130Stepper &st, const bool enable/*=true*/) { #if ENABLED(STEALTHCHOP) st.coolstep_min_speed(enable ? 1024UL * 1024UL - 1UL : 0); st.stealthChop(!enable); diff --git a/Marlin/tmc_util.h b/Marlin/tmc_util.h index 60134b72a2..8de85e2159 100644 --- a/Marlin/tmc_util.h +++ b/Marlin/tmc_util.h @@ -97,7 +97,7 @@ void monitor_tmc_driver(); * Defined here because of limitations with templates and headers. */ #if ENABLED(SENSORLESS_HOMING) - void tmc_sensorless_homing(TMC2130Stepper &st, bool enable=true); + void tmc_sensorless_homing(TMC2130Stepper &st, const bool enable=true); #endif #if ENABLED(HAVE_TMC2130)