Skip to content

Commit

Permalink
M221 on M503 fix
Browse files Browse the repository at this point in the history
output fix
  • Loading branch information
ThomasToka committed Jul 19, 2023
1 parent 59239d2 commit c9abe8d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Marlin/src/gcode/bedlevel/abl/G29.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1044,7 +1044,8 @@ G29_TYPE GcodeSuite::G29() {
#endif

#if ENABLED(E3S1PRO_RTS)
settings.save();
queue.enqueue_one_P(PSTR("M420 S1"));
queue.enqueue_one_P(PSTR("M500"));
rtscheck.RTS_SndData(lang, AUTO_LEVELING_START_TITLE_VP);
RTS_AutoBedLevelPage();
#endif
Expand Down
6 changes: 5 additions & 1 deletion Marlin/src/gcode/config/M221.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,12 @@ void GcodeSuite::M221() {

#if ENABLED(E3S1PRO_RTS)
void GcodeSuite::M221_report(const bool forReplay/*=true*/) {
const int8_t target_extruder = get_target_extruder_from_command();
if (target_extruder < 0) return;

report_heading_etc(forReplay, F(STR_FLOW_RATE));
SERIAL_ECHOLNPGM(" M221 ", "S", planner.flow_percentage[0]," ; (%)");
SERIAL_ECHOPGM(" M221 S", planner.flow_percentage[target_extruder]);
SERIAL_EOL();
}
#endif

Expand Down

0 comments on commit c9abe8d

Please sign in to comment.