M220 print FR percentage (#17101)

This commit is contained in:
Gurmeet Athwal 2020-03-11 06:43:59 +05:30 committed by GitHub
parent d78fbce827
commit bd44f041e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,6 +29,8 @@
* Parameters * Parameters
* S<percent> : Set the feed rate percentage factor * S<percent> : Set the feed rate percentage factor
* *
* Report the current speed percentage factor if no parameter is specified
*
* With PRUSA_MMU2... * With PRUSA_MMU2...
* B : Flag to back up the current factor * B : Flag to back up the current factor
* R : Flag to restore the last-saved factor * R : Flag to restore the last-saved factor
@ -43,4 +45,9 @@ void GcodeSuite::M220() {
if (parser.seenval('S')) feedrate_percentage = parser.value_int(); if (parser.seenval('S')) feedrate_percentage = parser.value_int();
if (!parser.seen_any()) {
SERIAL_ECHOPAIR("FR:", feedrate_percentage);
SERIAL_CHAR('%');
SERIAL_EOL();
}
} }