diff --git a/.travis.yml b/.travis.yml index 1916669c5..900d438ee 100644 --- a/.travis.yml +++ b/.travis.yml @@ -155,6 +155,12 @@ script: - opt_enable BQ_LCD_SMART_CONTROLLER SPEAKER - build_marlin # + # Test MINIRAMBO for PWM_MOTOR_CURRENT + # + - restore_configs + - opt_set MOTHERBOARD BOARD_MINIRAMBO + - build_marlin + # # Enable FILAMENTCHANGEENABLE # - restore_configs diff --git a/Marlin/stepper.h b/Marlin/stepper.h index 7612e6058..6ad55216d 100644 --- a/Marlin/stepper.h +++ b/Marlin/stepper.h @@ -134,7 +134,7 @@ class Stepper { #ifndef PWM_MOTOR_CURRENT #define PWM_MOTOR_CURRENT DEFAULT_PWM_MOTOR_CURRENT #endif - const int motor_current_setting[3] = PWM_MOTOR_CURRENT; + static constexpr int motor_current_setting[3] = PWM_MOTOR_CURRENT; #endif //