Browse Source

make motor_current_setting static and constexpr

Scott Lahteine 8 years ago
parent
commit
117db77c55
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/stepper.h

+ 1
- 1
Marlin/stepper.h View File

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

Loading…
Cancel
Save