Przeglądaj źródła

make motor_current_setting static and constexpr

Scott Lahteine 9 lat temu
rodzic
commit
117db77c55
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      Marlin/stepper.h

+ 1
- 1
Marlin/stepper.h Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz