瀏覽代碼

make motor_current_setting static and constexpr

Scott Lahteine 9 年之前
父節點
當前提交
117db77c55
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      Marlin/stepper.h

+ 1
- 1
Marlin/stepper.h 查看文件

134
       #ifndef PWM_MOTOR_CURRENT
134
       #ifndef PWM_MOTOR_CURRENT
135
         #define PWM_MOTOR_CURRENT DEFAULT_PWM_MOTOR_CURRENT
135
         #define PWM_MOTOR_CURRENT DEFAULT_PWM_MOTOR_CURRENT
136
       #endif
136
       #endif
137
-      const int motor_current_setting[3] = PWM_MOTOR_CURRENT;
137
+      static constexpr int motor_current_setting[3] = PWM_MOTOR_CURRENT;
138
     #endif
138
     #endif
139
 
139
 
140
     //
140
     //

Loading…
取消
儲存