Skip to content

Commit

Permalink
🚸 Include 'H' value in M412 report (MarlinFirmware#22138)
Browse files Browse the repository at this point in the history
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
  • Loading branch information
Ari-SSO and thinkyhead committed Jun 18, 2021
1 parent ce7bbaf commit 5bfb465
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Marlin/src/gcode/feature/runout/M412.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,15 @@ void GcodeSuite::M412() {
else {
SERIAL_ECHO_START();
SERIAL_ECHOPGM("Filament runout ");
serialprintln_onoff(runout.enabled);
serialprint_onoff(runout.enabled);
#if HAS_FILAMENT_RUNOUT_DISTANCE
SERIAL_ECHOLNPAIR("Filament runout distance (mm): ", runout.runout_distance());
SERIAL_ECHOPAIR(" ; Distance ", runout.runout_distance(), "mm");
#endif
#if ENABLED(HOST_ACTION_COMMANDS)
SERIAL_ECHOPGM(" ; Host handling ");
serialprint_onoff(runout.host_handling);
#endif
SERIAL_EOL();
}
}

Expand Down

0 comments on commit 5bfb465

Please sign in to comment.