extruder: expose can_extrude flag based on temperature

Sometimes an automated filament load is implemented,
but extruder might not always extrude filament.

This adds a flag to check if this operation is possible.

Signed-off-by: Kamil Trzcinski <ayufan@ayufan.eu>
This commit is contained in:
Kamil Trzcinski 2021-06-08 10:39:55 +00:00 committed by KevinOConnor
parent 6dcb902d89
commit d2c2aaf55d
2 changed files with 3 additions and 0 deletions

View file

@ -91,6 +91,7 @@ class PrinterExtruder:
self.pressure_advance_smooth_time = smooth_time
def get_status(self, eventtime):
return dict(self.heater.get_status(eventtime),
can_extrude=self.heater.can_extrude,
pressure_advance=self.pressure_advance,
smooth_time=self.pressure_advance_smooth_time)
def get_name(self):