1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-23 20:18:52 +00:00

M221 with no parameters report flow

This commit is contained in:
Scott Lahteine 2018-04-17 16:06:25 -05:00
parent 01b01f6dfd
commit 52c024e260

View File

@ -32,4 +32,12 @@ void GcodeSuite::M221() {
planner.flow_percentage[target_extruder] = parser.value_int();
planner.refresh_e_factor(target_extruder);
}
else {
SERIAL_ECHO_START();
SERIAL_CHAR('E');
SERIAL_CHAR('0' + target_extruder);
SERIAL_ECHOPAIR(" Flow: ", planner.flow_percentage[target_extruder]);
SERIAL_CHAR('%');
SERIAL_EOL();
}
}