M221 with no parameters report flow

This commit is contained in:
Scott Lahteine 2018-04-16 01:42:03 -05:00
parent 444b6d6d83
commit 090e08ef3d

View File

@ -9327,6 +9327,14 @@ inline void gcode_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();
}
}
/**