From 117db77c552a75ecec9f5e9d568a0ecb666c1c2a Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Tue, 21 Jun 2016 19:36:24 -0700 Subject: [PATCH 1/2] make motor_current_setting static and constexpr --- Marlin/stepper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/stepper.h b/Marlin/stepper.h index 7612e60587..6ad55216d5 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 // From 528df1b02da7a7a02e455a73e4e86ffd30822fd3 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Tue, 21 Jun 2016 19:36:06 -0700 Subject: [PATCH 2/2] Travis test for MINIRAMBO and PWM_MOTOR_CURRENT --- .travis.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.travis.yml b/.travis.yml index 1916669c57..900d438ee3 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