Browse Source

M221 with no parameters report flow

pull/1/head
Scott Lahteine 7 years ago
parent
commit
52c024e260
  1. 8
      Marlin/src/gcode/config/M221.cpp

8
Marlin/src/gcode/config/M221.cpp

@ -32,4 +32,12 @@ void GcodeSuite::M221() {
planner.flow_percentage[target_extruder] = parser.value_int(); planner.flow_percentage[target_extruder] = parser.value_int();
planner.refresh_e_factor(target_extruder); 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();
}
} }

Loading…
Cancel
Save