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:
parent
145d9005d1
commit
7d72ed688c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
//
|
||||
|
|
Reference in a new issue