Move flow_percentage to Planner

This commit is contained in:
Scott Lahteine
2017-09-08 23:50:46 -05:00
parent 8dc2838d98
commit bf7af95db3
8 changed files with 19 additions and 16 deletions

View File

@ -21,7 +21,7 @@
*/
#include "../gcode.h"
#include "../../Marlin.h"
#include "../../module/planner.h"
/**
* M221: Set extrusion percentage (M221 T0 S95)
@ -29,5 +29,5 @@
void GcodeSuite::M221() {
if (get_target_extruder_from_command()) return;
if (parser.seenval('S'))
flow_percentage[target_extruder] = parser.value_int();
planner.flow_percentage[target_extruder] = parser.value_int();
}

View File

@ -45,5 +45,5 @@ void gcode_M405() {
//SERIAL_PROTOCOLPGM("Filament dia (measured mm):");
//SERIAL_PROTOCOL(filament_width_meas);
//SERIAL_PROTOCOLPGM("Extrusion ratio(%):");
//SERIAL_PROTOCOL(flow_percentage[active_extruder]);
//SERIAL_PROTOCOL(planner.flow_percentage[active_extruder]);
}