Merge pull request #4119 from thinkyhead/fix_stepper_compile_error
Fix stepper compile error with motor_current_setting
This commit is contained in:
commit
937123ab32
|
@ -155,6 +155,12 @@ script:
|
||||||
- opt_enable BQ_LCD_SMART_CONTROLLER SPEAKER
|
- opt_enable BQ_LCD_SMART_CONTROLLER SPEAKER
|
||||||
- build_marlin
|
- build_marlin
|
||||||
#
|
#
|
||||||
|
# Test MINIRAMBO for PWM_MOTOR_CURRENT
|
||||||
|
#
|
||||||
|
- restore_configs
|
||||||
|
- opt_set MOTHERBOARD BOARD_MINIRAMBO
|
||||||
|
- build_marlin
|
||||||
|
#
|
||||||
# Enable FILAMENTCHANGEENABLE
|
# Enable FILAMENTCHANGEENABLE
|
||||||
#
|
#
|
||||||
- restore_configs
|
- restore_configs
|
||||||
|
|
|
@ -134,7 +134,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
|
||||||
const int motor_current_setting[3] = PWM_MOTOR_CURRENT;
|
static constexpr int motor_current_setting[3] = PWM_MOTOR_CURRENT;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue