|
|
@ -59,17 +59,17 @@ class TFilamentSensor : public FilamentSensorBase {
|
|
|
|
sensor.setup();
|
|
|
|
sensor.setup();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
inline static void reset() {
|
|
|
|
static inline void reset() {
|
|
|
|
filament_ran_out = false;
|
|
|
|
filament_ran_out = false;
|
|
|
|
response.reset();
|
|
|
|
response.reset();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// The sensor calls this method when filament is present
|
|
|
|
// The sensor calls this method when filament is present
|
|
|
|
inline static void filament_present(const uint8_t extruder) {
|
|
|
|
static inline void filament_present(const uint8_t extruder) {
|
|
|
|
response.filament_present(extruder);
|
|
|
|
response.filament_present(extruder);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
inline static void block_complete(const block_t *b) {
|
|
|
|
static inline void block_complete(const block_t *b) {
|
|
|
|
response.block_complete(b);
|
|
|
|
response.block_complete(b);
|
|
|
|
sensor.block_complete(b);
|
|
|
|
sensor.block_complete(b);
|
|
|
|
}
|
|
|
|
}
|
|
|
|