浏览代码

Apply const to tmc_sensorless_homing

Scott Lahteine 7 年前
父节点
当前提交
f83361a814
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1
    1
      Marlin/src/feature/tmc_util.cpp
  2. 1
    1
      Marlin/src/feature/tmc_util.h

+ 1
- 1
Marlin/src/feature/tmc_util.cpp 查看文件

@@ -581,7 +581,7 @@ void _tmc_say_sgt(const TMC_AxisEnum axis, const int8_t sgt) {
581 581
 
582 582
 #if ENABLED(SENSORLESS_HOMING)
583 583
 
584
-  void tmc_sensorless_homing(TMC2130Stepper &st, bool enable/*=true*/) {
584
+  void tmc_sensorless_homing(TMC2130Stepper &st, const bool enable/*=true*/) {
585 585
     #if ENABLED(STEALTHCHOP)
586 586
       st.coolstep_min_speed(enable ? 1024UL * 1024UL - 1UL : 0);
587 587
       st.stealthChop(!enable);

+ 1
- 1
Marlin/src/feature/tmc_util.h 查看文件

@@ -97,7 +97,7 @@ void monitor_tmc_driver();
97 97
  * Defined here because of limitations with templates and headers.
98 98
  */
99 99
 #if ENABLED(SENSORLESS_HOMING)
100
-  void tmc_sensorless_homing(TMC2130Stepper &st, bool enable=true);
100
+  void tmc_sensorless_homing(TMC2130Stepper &st, const bool enable=true);
101 101
 #endif
102 102
 
103 103
 #if ENABLED(HAVE_TMC2130)

正在加载...
取消
保存