Browse Source

'constexpr' => 'const' for PWM_MOTOR_CURRENT

Scott Lahteine 8 years ago
parent
commit
5cbed13f41
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/stepper.h

+ 2
- 2
Marlin/stepper.h View File

140
       #ifndef PWM_MOTOR_CURRENT
140
       #ifndef PWM_MOTOR_CURRENT
141
         #define PWM_MOTOR_CURRENT DEFAULT_PWM_MOTOR_CURRENT
141
         #define PWM_MOTOR_CURRENT DEFAULT_PWM_MOTOR_CURRENT
142
       #endif
142
       #endif
143
-      static constexpr int motor_current_setting[3] = PWM_MOTOR_CURRENT;
143
+      static const int motor_current_setting[3] = PWM_MOTOR_CURRENT;
144
     #endif
144
     #endif
145
 
145
 
146
     //
146
     //
384
 
384
 
385
 };
385
 };
386
 
386
 
387
-#endif // STEPPER_H
387
+#endif // STEPPER_H

Loading…
Cancel
Save