Merge pull request #4298 from jbrazio/feature/filament-counter
Adds filamentUsed and longestPrint stats to PrintCounter
This commit is contained in:
@ -2564,8 +2564,14 @@ void gcode_get_destination() {
|
||||
else
|
||||
destination[i] = current_position[i];
|
||||
}
|
||||
|
||||
if (code_seen('F') && code_value_linear_units() > 0.0)
|
||||
feedrate = code_value_linear_units();
|
||||
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
if(!DEBUGGING(DRYRUN))
|
||||
print_job_timer.incFilamentUsed(destination[E_AXIS] - current_position[E_AXIS]);
|
||||
#endif
|
||||
}
|
||||
|
||||
void unknown_command_error() {
|
||||
|
Reference in New Issue
Block a user