Browse Source

Merge pull request #29 from k-eex/Marlin_v1

Fix M201 not saving settings in all places, so the changes did not get written into EEPROM
Bernhard Kubicek 12 years ago
parent
commit
f6fe7143e4
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      Marlin/Marlin.pde

+ 5
- 1
Marlin/Marlin.pde View File

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

Loading…
Cancel
Save