'constexpr' => 'const' for PWM_MOTOR_CURRENT

This commit is contained in:
Scott Lahteine 2016-09-20 15:57:48 -05:00 committed by GitHub
parent be3a8f4126
commit 5cbed13f41

View File

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