Pārlūkot izejas kodu

Merge pull request #6995 from Bob-the-Kuhn/add-static

Add "static"
Bob-the-Kuhn 8 gadus atpakaļ
vecāks
revīzija
76a610cf81
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      Marlin/Marlin_main.cpp

+ 1
- 1
Marlin/Marlin_main.cpp Parādīt failu

1499
  * Some planner shorthand inline functions
1499
  * Some planner shorthand inline functions
1500
  */
1500
  */
1501
 inline float get_homing_bump_feedrate(const AxisEnum axis) {
1501
 inline float get_homing_bump_feedrate(const AxisEnum axis) {
1502
-  const uint8_t homing_bump_divisor[] PROGMEM = HOMING_BUMP_DIVISOR;
1502
+  static const uint8_t homing_bump_divisor[] PROGMEM = HOMING_BUMP_DIVISOR;
1503
   uint8_t hbd = pgm_read_byte(&homing_bump_divisor[axis]);
1503
   uint8_t hbd = pgm_read_byte(&homing_bump_divisor[axis]);
1504
   if (hbd < 1) {
1504
   if (hbd < 1) {
1505
     hbd = 10;
1505
     hbd = 10;

Notiek ielāde…
Atcelt
Saglabāt