Browse Source

Save 224b PROGMEM, 48b SRAM in get_homing_bump_feedrate

Scott Lahteine 8 years ago
parent
commit
36cc03a9b4
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/Marlin_main.cpp

+ 2
- 2
Marlin/Marlin_main.cpp View File

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

Loading…
Cancel
Save