🩹 Fix PRINTCOUNTER with EXTRUDERS 0 (#24063)

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
Christian Piper
2022-04-21 03:15:07 -04:00
committed by Scott Lahteine
parent 99252cf0cd
commit be6535e5f7
4 changed files with 43 additions and 35 deletions

View File

@ -207,7 +207,7 @@ void GcodeSuite::get_destination_from_command() {
if (parser.floatval('F') > 0)
feedrate_mm_s = parser.value_feedrate();
#if ENABLED(PRINTCOUNTER)
#if BOTH(PRINTCOUNTER, HAS_EXTRUDERS)
if (!DEBUGGING(DRYRUN) && !skip_move)
print_job_timer.incFilamentUsed(destination.e - current_position.e);
#endif