Skip to content

Commit

Permalink
changed M220
Browse files Browse the repository at this point in the history
  • Loading branch information
PavelSindler committed Nov 29, 2018
1 parent 929e1de commit 8e239ce
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Firmware/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6080,11 +6080,15 @@ SERIAL_PROTOCOLPGM("\n\n");
SERIAL_ECHOLN("");
}break;
#endif

case 220: // M220 S<factor in percent>- set speed factor override percentage
{
if(code_seen('S'))
{
if (code_seen('B')) //backup current speed factor
{
saved_feedmultiply_mm = feedmultiply;
}
if(code_seen('S'))
{
feedmultiply = code_value() ;
}
if (code_seen('R')) { //restore previous feedmultiply
Expand Down

0 comments on commit 8e239ce

Please sign in to comment.