Skip to content

Commit

Permalink
M220 print FR percentage (MarlinFirmware#17101)
Browse files Browse the repository at this point in the history
  • Loading branch information
guruathwal authored and mathom committed Apr 16, 2020
1 parent 3845d42 commit c869c1b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Marlin/src/gcode/config/M220.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
* Parameters
* S<percent> : Set the feed rate percentage factor
*
* Report the current speed percentage factor if no parameter is specified
*
* With PRUSA_MMU2...
* B : Flag to back up the current factor
* R : Flag to restore the last-saved factor
Expand All @@ -43,4 +45,9 @@ void GcodeSuite::M220() {

if (parser.seenval('S')) feedrate_percentage = parser.value_int();

if (!parser.seen_any()) {
SERIAL_ECHOPAIR("FR:", feedrate_percentage);
SERIAL_CHAR('%');
SERIAL_EOL();
}
}

0 comments on commit c869c1b

Please sign in to comment.