Browse Source

Fix M201 not saving settings in all places, so the changes did not get written into EEPROM

Keegi 13 years ago
parent
commit
bae1e422f6
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      Marlin/Marlin.pde

+ 5
- 1
Marlin/Marlin.pde View File

@@ -984,7 +984,11 @@ FORCE_INLINE void process_commands()
984 984
     case 201: // M201
985 985
       for(int8_t i=0; i < NUM_AXIS; i++) 
986 986
       {
987
-        if(code_seen(axis_codes[i])) axis_steps_per_sqr_second[i] = code_value() * axis_steps_per_unit[i];
987
+        if(code_seen(axis_codes[i]))
988
+        {
989
+          max_acceleration_units_per_sq_second[i] = code_value();
990
+          axis_steps_per_sqr_second[i] = code_value() * axis_steps_per_unit[i];
991
+        }
988 992
       }
989 993
       break;
990 994
     #if 0 // Not used for Sprinter/grbl gen6

Loading…
Cancel
Save