Browse Source

Revert motor_current_setting to `constexpr`

We should use `constexpr` wherever it makes sense, for its added benefits. See http://stackoverflow.com/questions/13346879/const-vs-constexpr-on-variables
pull/1/head
Scott Lahteine 8 years ago
committed by Scott Lahteine
parent
commit
7d72ed688c
  1. 2
      Marlin/stepper.h

2
Marlin/stepper.h

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

Loading…
Cancel
Save