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
This commit is contained in:
Scott Lahteine 2016-09-21 14:49:24 -05:00 committed by Scott Lahteine
parent 145d9005d1
commit 7d72ed688c

View File

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