Skip to content

Commit

Permalink
Fix M201 not saving settings in all places, so the changes did not ge…
Browse files Browse the repository at this point in the history
…t written into EEPROM
  • Loading branch information
k-eex committed Dec 8, 2011
1 parent 754d2d6 commit bae1e42
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Marlin/Marlin.pde
Expand Up @@ -984,7 +984,11 @@ FORCE_INLINE void process_commands()
case 201: // M201 case 201: // M201
for(int8_t i=0; i < NUM_AXIS; i++) 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; break;
#if 0 // Not used for Sprinter/grbl gen6 #if 0 // Not used for Sprinter/grbl gen6
Expand Down

0 comments on commit bae1e42

Please sign in to comment.