chiark / gitweb /
Fix M201 not saving settings in all places, so the changes did not get written into...
authorKeegi <keegi@spamcop.net>
Thu, 8 Dec 2011 10:25:32 +0000 (12:25 +0200)
committerKeegi <keegi@spamcop.net>
Thu, 8 Dec 2011 10:25:32 +0000 (12:25 +0200)
Marlin/Marlin.pde

index ac42c15846c2bc0158e3d4a22d628223821bcffe..9deac7966963444f50352ca408ef063a2db37a9d 100644 (file)
@@ -984,7 +984,11 @@ FORCE_INLINE void process_commands()
     case 201: // M201
       for(int8_t i=0; i < NUM_AXIS; i++) 
       {
-        if(code_seen(axis_codes[i])) axis_steps_per_sqr_second[i] = code_value() * axis_steps_per_unit[i];
+        if(code_seen(axis_codes[i]))
+        {
+          max_acceleration_units_per_sq_second[i] = code_value();
+          axis_steps_per_sqr_second[i] = code_value() * axis_steps_per_unit[i];
+        }
       }
       break;
     #if 0 // Not used for Sprinter/grbl gen6